13 lines
276 B
MySQL
13 lines
276 B
MySQL
|
-- name: InsertBundle :one
|
||
|
INSERT INTO bundles (
|
||
|
site_id,
|
||
|
name,
|
||
|
created_at,
|
||
|
updated_at
|
||
|
) VALUES ($1, $2, $3, $3) RETURNING id;
|
||
|
|
||
|
-- name: ListBundles :many
|
||
|
SELECT * FROM bundles WHERE site_id = $1;
|
||
|
|
||
|
-- name: GetBundleWithID :one
|
||
|
SELECT * FROM bundles WHERE id = $1;
|