Download goalert/auth/authlink/queries.sql from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 541 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/goalert/auth/authlink/queries.sql
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/goalert/auth/authlink/queries.sql
-
curl -L -o queries.sql https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/goalert/auth/authlink/queries.sql
541 Bytes
| -- name: AuthLinkAddReq :exec | |
| INSERT INTO auth_link_requests(id, provider_id, subject_id, expires_at, metadata) | |
| VALUES ($1, $2, $3, $4, $5); | |
| -- name: AuthLinkUseReq :one | |
| DELETE FROM auth_link_requests | |
| WHERE id = $1 | |
| AND expires_at > now() | |
| RETURNING | |
| provider_id, | |
| subject_id; | |
| -- name: AuthLinkAddAuthSubject :exec | |
| INSERT INTO auth_subjects(provider_id, subject_id, user_id) | |
| VALUES ($1, $2, $3); | |
| -- name: AuthLinkMetadata :one | |
| SELECT | |
| metadata | |
| FROM | |
| auth_link_requests | |
| WHERE | |
| id = $1 | |
| AND expires_at > now(); | |