mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 14:30:29 +00:00
chore: refactoring
This commit is contained in:
parent
2391e338b4
commit
ae86ef519c
7 changed files with 87 additions and 75 deletions
|
|
@ -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 ?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue