Initial commot
Have got DB creation and migration working
This commit is contained in:
commit
4ecc12f035
14 changed files with 315 additions and 0 deletions
11
sql/queries/sites.sql
Normal file
11
sql/queries/sites.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- name: ListSites :one
|
||||
SELECT * FROM site;
|
||||
|
||||
-- name: NewSite :one
|
||||
INSERT INTO site (
|
||||
name,
|
||||
url,
|
||||
theme,
|
||||
props
|
||||
) VALUES ($1, $2, $3, $4)
|
||||
RETURNING id;
|
||||
Loading…
Add table
Add a link
Reference in a new issue