Download goalert/keyring/queries.sql from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 727 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/goalert/keyring/queries.sql
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/goalert/keyring/queries.sql
-
curl -L -o queries.sql https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/goalert/keyring/queries.sql
727 Bytes
| -- name: Keyring_LockKeyrings :exec | |
| -- Locks the keyring table so no new keyrings can be created. | |
| LOCK TABLE keyring IN ACCESS EXCLUSIVE MODE; | |
| -- name: Keyring_LockConfig :exec | |
| -- Locks the config table so no new config payloads can be created. | |
| LOCK TABLE config IN ACCESS EXCLUSIVE MODE; | |
| -- name: Keyring_GetKeyringSecrets :many | |
| SELECT | |
| id, | |
| signing_key, | |
| next_key | |
| FROM | |
| keyring; | |
| -- name: Keyring_UpdateKeyringSecrets :exec | |
| UPDATE | |
| keyring | |
| SET | |
| signing_key = @signing_key, | |
| next_key = @next_key | |
| WHERE | |
| id = @id; | |
| -- name: Keyring_GetConfigPayloads :many | |
| SELECT | |
| id, | |
| data | |
| FROM | |
| config; | |
| -- name: Keyring_UpdateConfigPayload :exec | |
| UPDATE | |
| config | |
| SET | |
| data = @data | |
| WHERE | |
| id = @id; | |