aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorpacien2021-07-25 21:53:59 +0200
committerpacien2021-07-25 21:53:59 +0200
commit7f11aa00673b0f77523db44969699c54289ace5b (patch)
tree77ed092b04460e263532d76843945a05a1229d58 /sql
parent1a74f19cd68e3b7264621e7231475c6b25505e6d (diff)
downloaduge_l2_rdbms_python_proto-7f11aa00673b0f77523db44969699c54289ace5b.tar.gz
app: working web prototype
Diffstat (limited to 'sql')
-rw-r--r--sql/queries.sql9
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/queries.sql b/sql/queries.sql
index 066781f..3cc8342 100644
--- a/sql/queries.sql
+++ b/sql/queries.sql
@@ -3,10 +3,17 @@
3-- Licence: EUPL-1.2 3-- Licence: EUPL-1.2
4 4
5 5
6-- Fetch a user account by its username. 6-- Fetch a user account by its ID.
7-- 7--
8-- :name fetch_account 8-- :name fetch_account
9-- :result :one-or-none 9-- :result :one-or-none
10select * from accounts where id = :user_id;
11
12
13-- Fetch a user account by its username.
14--
15-- :name fetch_account_username
16-- :result :one-or-none
10select * from accounts where username = :username; 17select * from accounts where username = :username;
11 18
12 19