Module
Nonbili.Postgres.Pool
- Package
- purescript-nonbili-postgres
- Repository
- nonbili/purescript-nonbili-postgres
Bindings to pg.Pool.
#withTransaction Source
withTransaction :: forall a. Pool -> (Client -> Aff a) -> Aff a
Acquire a client from the pool, then run queries as a transaction.
#query Source
query :: forall a p. ToQueryParams p => DecodeJson a => Client -> String -> p -> Aff (Result a)
pg
will construct SQL from provided query string and params. Check
ToQueryParams
for supported params.