Skip to content

Commit

Permalink
tapdb: add new DeclareScriptKeyKnown query
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Nov 9, 2024
1 parent 4792637 commit eb9f19f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tapdb/sqlc/assets.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tapdb/sqlc/querier.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions tapdb/sqlc/queries/assets.sql
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,10 @@ INSERT INTO script_keys (
DO UPDATE SET tweaked_script_key = EXCLUDED.tweaked_script_key
RETURNING script_key_id;

-- name: DeclareScriptKeyKnown :exec
UPDATE script_keys
SET declared_known = TRUE
WHERE tweaked_script_key = $1;
-- name: FetchScriptKeyIDByTweakedKey :one
SELECT script_key_id
FROM script_keys
Expand Down

0 comments on commit eb9f19f

Please sign in to comment.