purescript-postgresql-client/PurspgppExample.purs
2016-12-22 20:28:47 +01:00

12 lines
246 B
Haskell
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)|]