psql-0.0.0: PostgreSQL client
Safe HaskellNone
LanguageHaskell2010

PostgreSQL.Query.Class

Description

Class declarations for query execution

Synopsis

Documentation

class Monad query => Query query where Source #

PostgreSQL query

Since: 0.0.0

Associated Types

type NativeResult query :: Type Source #

Native query result

Since: 0.0.0

Methods

executeStatement Source #

Arguments

:: Statement a

Statement

-> a

Statement input

-> query (NativeResult query) 

Execute a statement.

Since: 0.0.0

executePreparedStatement Source #

Arguments

:: PreparedStatement a

Prepared statement

-> a

Statement input

-> query (NativeResult query) 

Execute a previously prepared statement.

Since: 0.0.0

withPreparedStatement Source #

Arguments

:: Statement a

Statement to prepare

-> (PreparedStatement a -> query r)

Scope within the prepared statement may be used

-> query r 

Prepare a statement. The prepared statement is only valid within the provided continuation.

Since: 0.0.0

processResult Source #

Arguments

:: NativeResult query

Result

-> Result a

Result processor

-> query a 

Process the result object.

Since: 0.0.0

Instances

Instances details
(MonadIO m, MonadMask m) => Query (QueryT m) Source # 
Instance details

Defined in PostgreSQL.Query

Associated Types

type NativeResult (QueryT m) Source #

class Executable statement where Source #

statement is an executable statement.

Since: 0.0.0

Methods

execute Source #

Arguments

:: Query query 
=> statement param

Statement

-> param

Statement input

-> query (NativeResult query) 

Execute a statement.

Since: 0.0.0

Instances

Instances details
Executable PreparedStatement Source #

Since: 0.0.0

Instance details

Defined in PostgreSQL.Query.Class

Methods

execute :: Query query => PreparedStatement param -> param -> query (NativeResult query) Source #

Executable Statement Source #

Since: 0.0.0

Instance details

Defined in PostgreSQL.Query.Class

Methods

execute :: Query query => Statement param -> param -> query (NativeResult query) Source #