wip: currently rewriting the project as a full stack application tangled.org/kacaii.dev/sigo
gleam
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

:art: inline register_new_user.sql file

Kacaii 84318b59 4c9fc169

+4 -21
+2 -11
src/app/sql.gleam
··· 5 5 //// 6 6 7 7 import gleam/dynamic/decode 8 - import gleam/json 9 8 import pog 10 9 import youid/uuid.{type Uuid} 11 10 ··· 97 96 let decoder = decode.map(decode.dynamic, fn(_) { Nil }) 98 97 99 98 "INSERT INTO user_account ( 100 - full_name, 101 - password_hash, 102 - registration, 103 - email 104 - ) VALUES ( 105 - $1, 106 - $2, 107 - $3, 108 - $4 109 - ) 99 + full_name, password_hash, registration, email 100 + ) VALUES ($1, $2, $3, $4) 110 101 " 111 102 |> pog.query 112 103 |> pog.parameter(pog.text(arg_1))
+2 -10
src/app/sql/register_new_user.sql
··· 1 1 INSERT INTO user_account ( 2 - full_name, 3 - password_hash, 4 - registration, 5 - email 6 - ) VALUES ( 7 - $1, 8 - $2, 9 - $3, 10 - $4 11 - ) 2 + full_name, password_hash, registration, email 3 + ) VALUES ($1, $2, $3, $4)