diff options
| author | adamdottv <[email protected]> | 2025-05-13 10:27:09 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-13 10:27:09 -0500 |
| commit | ae86ef519c5dc557914c29bd1786b1c87d8dcb95 (patch) | |
| tree | e1b5f7bbeb74739c74055d205ad62181230f0b12 /internal/db/sql/logs.sql | |
| parent | 2391e338b4e41726e7233e2bf027a62476140130 (diff) | |
| download | opencode-ae86ef519c5dc557914c29bd1786b1c87d8dcb95.tar.gz opencode-ae86ef519c5dc557914c29bd1786b1c87d8dcb95.zip | |
chore: refactoring
Diffstat (limited to 'internal/db/sql/logs.sql')
| -rw-r--r-- | internal/db/sql/logs.sql | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/db/sql/logs.sql b/internal/db/sql/logs.sql index 1a0655f7e..58414f88a 100644 --- a/internal/db/sql/logs.sql +++ b/internal/db/sql/logs.sql @@ -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 ?;
\ No newline at end of file +LIMIT ?; |
