ribbit-0.2.1.0: ribbit

Safe HaskellNone
LanguageHaskell2010

Database.Ribbit.PostgreSQL

Description

"postgresql-simple"-backed query ribbit implementation.

Synopsis

Documentation

query :: (MonadIO m, Render query, ToRow (ArgsType query), FromRow (ResultType query)) => Connection -> Proxy query -> ArgsType query -> m [ResultType query] Source #

Execute a query against a PostgreSQL database connection.

class FromRow a Source #

Like FromRow, but defined here so we can avoid orphaned instances.

Minimal complete definition

fromRow

Instances
FromField a => FromRow (Only a) Source # 
Instance details

Defined in Database.Ribbit.PostgreSQL

Methods

fromRow :: RowParser (Only a)

(FromRow a, FromRow b) => FromRow (a :> b) Source # 
Instance details

Defined in Database.Ribbit.PostgreSQL

Methods

fromRow :: RowParser (a :> b)

class ToRow a Source #

Like ToRow, but defined here to avoid orphan instances.

Minimal complete definition

toRow

Instances
ToRow () Source # 
Instance details

Defined in Database.Ribbit.PostgreSQL

Methods

toRow :: () -> [Action]

ToField a => ToRow (Only a) Source # 
Instance details

Defined in Database.Ribbit.PostgreSQL

Methods

toRow :: Only a -> [Action]

(ToRow a, ToRow b) => ToRow (a :> b) Source # 
Instance details

Defined in Database.Ribbit.PostgreSQL

Methods

toRow :: (a :> b) -> [Action]