Add user creation route
This commit is contained in:
+2
-2
@@ -61,8 +61,8 @@ parentheticT :: CompleteQueryT
|
||||
parentheticT (sql, params) =
|
||||
(" (" <> sql <> ") ", params)
|
||||
|
||||
aIffNotBT :: CompleteQuery -> CompleteQueryT
|
||||
aIffNotBT (aq, ap) (bq, bp) =
|
||||
iffNotT :: CompleteQuery -> CompleteQueryT
|
||||
iffNotT (aq, ap) (bq, bp) =
|
||||
("WITH aaa AS (" <> aq <> " returning *) " <>
|
||||
bq <> "WHERE NOT EXISTS (SELECT * FROM aaa)"
|
||||
, ap ++ bp
|
||||
|
||||
Reference in New Issue
Block a user