Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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]
- updateFieldDef :: PersistEntity v => Update v -> FieldDef
- updatePersistValue :: Update v -> PersistValue
- mkUpdateText :: PersistEntity record => SqlBackend -> Update record -> Text
- mkUpdateText' :: PersistEntity record => (DBName -> Text) -> (Text -> Text) -> Update record -> Text
- commaSeparated :: [Text] -> Text
- parenWrapped :: Text -> Text
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 #
updateFieldDef :: PersistEntity v => Update v -> FieldDef Source #
updatePersistValue :: Update v -> PersistValue Source #
mkUpdateText :: PersistEntity record => SqlBackend -> Update record -> Text Source #
mkUpdateText' :: PersistEntity record => (DBName -> Text) -> (Text -> Text) -> Update record -> Text Source #
commaSeparated :: [Text] -> Text Source #
parenWrapped :: Text -> Text Source #