kinda working

This commit is contained in:
wagslane
2023-05-30 21:28:23 -06:00
parent 7d1852d380
commit 80ec635705
91 changed files with 13103 additions and 2 deletions

20
sql/queries/notes.sql Normal file
View File

@@ -0,0 +1,20 @@
-- name: CreateNote :exec
INSERT INTO notes (id, created_at, updated_at, note, user_id)
VALUES (?, ?, ?, ?, ?);
--
-- name: GetNote :one
SELECT * FROM notes WHERE id = ?;
--
-- name: GetNotesForUser :many
SELECT * FROM notes WHERE user_id = ?;
--
-- name: UpdateNote :exec
UPDATE notes SET updated_at = ?, note = ? WHERE id = ?;
--
-- name: DeleteNote :exec
DELETE FROM notes WHERE id = ?;
--