Skip to content

Commit 7536d9e

Browse files
sqlc generated for new schema
1 parent 5ad492c commit 7536d9e

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

db/queries/pending_transactions.sql

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ INSERT INTO pending_transactions_archive (
1010
error_msg,
1111
output,
1212
executed_by,
13-
duration_ms
13+
duration_ms,
14+
ExecStatus
1415
) VALUES (
15-
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11
16+
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12
1617
) RETURNING *;
1718

1819
-- name: GetPendingTransactionPQ :one
@@ -45,7 +46,8 @@ SET
4546
status = $2,
4647
error_msg = $3,
4748
output = $4,
48-
duration_ms = $5
49+
duration_ms = $5,
50+
ExecStatus = $6
4951
WHERE id = $1
5052
RETURNING *;
5153

db/queries/results_transactions.sql

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ INSERT INTO results_transactions_archive (
1010
error_msg,
1111
output,
1212
executed_by,
13-
duration_ms
13+
duration_ms,
14+
ExecStatus
1415
) VALUES (
15-
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11
16+
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12
1617
) RETURNING *;
1718

1819
-- name: GetResultsTransactionPQ :one
@@ -50,7 +51,8 @@ SET
5051
status = $2,
5152
error_msg = $3,
5253
output = $4,
53-
duration_ms = $5
54+
duration_ms = $5,
55+
ExecStatus = $6
5456
WHERE id = $1
5557
RETURNING *;
5658

db/queries/sessions.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ WHERE username = $1
1717
ORDER BY created_at DESC;
1818

1919
-- name: DeleteSessionPQ :exec
20-
DELETE FROM sessions_archive WHERE id = $1;
20+
DELETE FROM sessions_archive WHERE id = $1

0 commit comments

Comments
 (0)