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

Database.Persist.GenericSql.Internal

Description

Code that is only needed for writing GenericSql backends.

Synopsis

Documentation

data Connection

Constructors

Connection 

data Statement

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
 

withSqlConn :: (MonadIO m, MonadBaseControl IO m) => IO Connection -> (Connection -> m a) -> m a

withSqlPool :: (MonadIO m, MonadBaseControl IO m) => IO Connection -> Int -> (Pool Connection -> m a) -> m a

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

Create the list of columns for the given entity.

data Column

newtype RawName

Constructors

RawName 

Fields

unRawName :: String
 

Instances

filterClause

Arguments

:: PersistEntity val 
=> Bool

include table name?

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

filterClauseNoWhere

Arguments

:: PersistEntity val 
=> Bool

include table name?

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

getFiltsValues :: forall val. PersistEntity val => Connection -> [Filter val] -> [PersistValue]