Database.Persist.Sql.Util

persistent-2.6: Type-safe, multi-backend data serialization.

Safe Haskell | None
Language | Haskell98

Database.Persist.Sql.Util

# Documentation

parseEntityValues :: PersistEntity record => EntityDef -> [PersistValue] -> Either Text (Entity record) #

entityColumnNames :: EntityDef -> SqlBackend -> [Sql] #

keyAndEntityColumnNames :: EntityDef -> SqlBackend -> [Sql] #

entityColumnCount :: EntityDef -> Int #

isIdField :: PersistEntity record => EntityField record typ -> Bool #

hasCompositeKey :: EntityDef -> Bool #

dbIdColumns :: SqlBackend -> EntityDef -> [Text] #

dbIdColumnsEsc :: (DBName -> Text) -> EntityDef -> [Text] #

dbColumns :: SqlBackend -> EntityDef -> [Text] #