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

Safe HaskellNone
LanguageHaskell98

Database.Persist.Quasi

Synopsis

Documentation

parse :: PersistSettings -> Text -> [EntityDef] Source

Parses a quasi-quoted syntax into a list of entity definitions.

data PersistSettings Source

Constructors

PersistSettings 

Fields

psToDBName :: !(Text -> Text)
 
psStrictFields :: !Bool

Whether fields are by default strict. Default value: True.

Since 1.2

psIdName :: !Text

The name of the id column. Default value: id The name of the id column can also be changed on a per-model basis https://github.com/yesodweb/persistent/wiki/Persistent-entity-syntax

Since 2.0