hasql/threads-test/Main/Queries.hs
2016-03-06 13:54:42 +03:00

21 lines
338 B
Haskell

module Main.Queries where
import Rebase.Prelude
import Hasql.Query
import qualified Hasql.Encoders as E
import qualified Hasql.Decoders as D
selectSleep :: Query Double ()
selectSleep =
statement sql encoder decoder True
where
sql =
"select pg_sleep($1)"
encoder =
E.value E.float8
decoder =
D.unit