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

Database.Persist.GenericSql

Description

This is a helper module for creating SQL backends. Regular users do not need to use this module.

Synopsis

Documentation

persist :: QuasiQuoterSource

Converts a quasi-quoted syntax into a list of entity definitions, to be used as input to the backend-specific template haskell generation code.

data GenericSql m Source

Constructors

GenericSql 

Fields

gsWithStmt :: forall a. String -> [PersistValue] -> (RowPopper m -> m a) -> m a
 
gsExecute :: String -> [PersistValue] -> m ()
 
gsInsert :: String -> [String] -> [PersistValue] -> m Int64
 
gsEntityDefExists :: String -> m Bool
 
gsKeyType :: String