chore: refactoring

This commit is contained in:
adamdottv 2025-05-13 10:27:09 -05:00
parent 2391e338b4
commit ae86ef519c
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
7 changed files with 87 additions and 75 deletions

View file

@ -1,4 +1,4 @@
-- name: CreateLog :exec
-- name: CreateLog :one
INSERT INTO logs (
id,
session_id,
@ -15,7 +15,7 @@ INSERT INTO logs (
?,
?,
?
);
) RETURNING *;
-- name: ListLogsBySession :many
SELECT * FROM logs
@ -25,4 +25,4 @@ ORDER BY timestamp ASC;
-- name: ListAllLogs :many
SELECT * FROM logs
ORDER BY timestamp DESC
LIMIT ?;
LIMIT ?;