persistent-0.6.4.3: Type-safe, non-relational, multi-backend persistence.

Database.Persist.GenericSql.Internal

Description

Code that is only needed for writing GenericSql backends.

Synopsis

Documentation

data Statement Source

Constructors

Statement 

Fields

finalize :: IO ()
 
reset :: IO ()
 
execute :: [PersistValue] -> IO ()
 
withStmt :: forall a m. (MonadBaseControl IO m, MonadIO m) => [PersistValue] -> (RowPopper m -> m a) -> m a
 

mkColumns :: PersistEntity val => val -> ([Column], [UniqueDef'])Source

Create the list of columns for the given entity.

newtype RawName Source

Constructors

RawName 

Fields

unRawName :: String
 

Instances

filterClauseSource

Arguments

:: PersistEntity val 
=> Bool

include table name?

-> Connection 
-> [Filter val] 
-> String 

filterClauseNoWhereSource

Arguments

:: PersistEntity val 
=> Bool

include table name?

-> Connection 
-> [Filter val] 
-> String