Safe Haskell | None |
---|---|
Language | Haskell98 |
Database.Persist.Sql.Util
Documentation
parseEntityValues :: PersistEntity record => EntityDef -> [PersistValue] -> Either Text (Entity record) Source #
entityColumnNames :: EntityDef -> SqlBackend -> [Sql] Source #
keyAndEntityColumnNames :: EntityDef -> SqlBackend -> [Sql] Source #
entityColumnCount :: EntityDef -> Int Source #
isIdField :: PersistEntity record => EntityField record typ -> Bool Source #
hasCompositeKey :: EntityDef -> Bool Source #
dbIdColumns :: SqlBackend -> EntityDef -> [Text] Source #