This is a helper module for creating SQL backends. Regular users do not need to use this module.
- data Int64
- module Database.Persist.Helper
- persist :: QuasiQuoter
- deriveGenericSql :: Type -> Exp -> EntityDef -> Q [Dec]
- type RowPopper m = m (Maybe [PersistValue])
- data GenericSql m = GenericSql {
- 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
Documentation
data Int64
64-bit signed integer type
module Database.Persist.Helper
Converts a quasi-quoted syntax into a list of entity definitions, to be used as input to the backend-specific template haskell generation code.
type RowPopper m = m (Maybe [PersistValue])Source
data GenericSql m Source
GenericSql | |
|