relational-query-postgresql-pure-0.1.1.0: The connector of relational-record and postgresql-pure.

Safe HaskellNone
LanguageHaskell2010

Database.Relational.PostgreSQL.Pure.Query

Synopsis

Documentation

runQuery' Source #

Arguments

:: (ToRecord p, FromRecord r, KnownNat (Length p), KnownNat (Length r), HasLength (Homotuple (Length r) ColumnInfo), IsHomotupleItem (Length p) Oid, IsHomotupleItem (Length r) Oid, IsHomotupleItem (Length r) ColumnInfo, IsHomolisttuple (Length p) Oid, IsHomolisttuple (Length r) Oid, IsHomolisttuple (Length r) ColumnInfo) 
=> Connection

Database connection

-> Query p r

Query to get record type a requires parameter p

-> p

Parameter type

-> IO [r]

Action to get records

Prepare SQL, bind parameters, execute statement and strictly fetch all records.