feat: we made it better...aka i did too many things and don't remember
This commit is contained in:
@@ -8,3 +8,14 @@ VALUES (
|
||||
$2
|
||||
)
|
||||
RETURNING *;
|
||||
|
||||
-- name: GetAllChirps :many
|
||||
SELECT id, created_at, updated_at, body, user_id FROM chirps
|
||||
ORDER BY created_at ASC;
|
||||
|
||||
-- name: GetChirpById :one
|
||||
SELECT id, created_at, updated_at, body, user_id FROM chirps
|
||||
WHERE id = $1;
|
||||
|
||||
-- name: DeleteChirpById :exec
|
||||
DELETE FROM chirps WHERE id = $1;
|
||||
|
||||
Reference in New Issue
Block a user