purescript-postgresql-client/PurspgppExample.purs

12 lines
246 B
Haskell
Raw Normal View History

2016-12-22 19:28:47 +00:00
module PurspgppExample where
f :: Query (String × Unit) (UUID × String × Unit)
f = [query|
SELECT id, name
FROM files
WHERE author_id = $1
|]
g :: Query Unit (Boolean × Unit)
g = [query|SELECT pg_try_advisory_lock(3735928559)|]