preql-0.6: safe PostgreSQL queries using Quasiquoters
Safe HaskellNone
LanguageHaskell2010

Preql.Wire.Query

Description

 
Synopsis

Documentation

data Connection Source #

We make the type cache part of the Connection to offer the option of per-Connection (or striped) caches. It's also reasonable to share a single cache for an entire multi-threaded program; the IORef supports this usage.

Constructors

Connection 

Instances

Instances details
SQL (ReaderT Connection IO) Source #

Most larger applications will define an instance; this one is suitable to test out the library. A safer version would use MVar Connection to ensure only one thread using it.

Instance details

Defined in Preql.Effect

query_ :: ToSql p => Connection -> Query n -> p -> IO (Either QueryError ()) Source #

data IsolationLevel Source #

Instances

Instances details
Bounded IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

Enum IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

Eq IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

Ord IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

Read IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

Show IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query