Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type PersistModelFile = [PersistModelFilePiece]
- data PersistModelFilePiece
- data Entity = Entity {}
- data EntityChild
- data EntityField = EntityField {}
- data Strictness
- = Strict
- | ExplicitStrict
- | Lazy
- data EntityFieldType = EntityFieldType {}
- data EntityUnique = EntityUnique {}
- data EntityDerive = EntityDerive {}
- data EntityPrimary = EntityPrimary {
- _getEntityPrimeType :: [Text]
- data EntityForeign = EntityForeign {}
- data WhiteSpace = WhiteSpace {}
- data Comment = Comment {
- _getComment :: Text
- data AuditAction
Documentation
type PersistModelFile = [PersistModelFilePiece] Source
A collection of data types with which you can recontruct a Persist Model file | or create an altered version.
data PersistModelFilePiece Source
Top level pieces of a Persist Model file.
A single Persist Model Entity.
Entity | |
|
data EntityChild Source
All of the child elements of a Persist Model Entity. | They are all indented in the Model File.
data EntityField Source
A data row from an Entity.
EntityField | |
|
data Strictness Source
Table rows can be strict or lazy
Strict | Persist Model types are strict without any notation |
ExplicitStrict | "!" can be used to reemphasize that a type is strict |
Lazy | "~" means that a type is Lazy |
data EntityFieldType Source
An entity data row's type. If _isEntityFieldTypeList
is True
than this type is a list.
data EntityUnique Source
A unique idenfitier for an Entity.
data EntityDerive Source
'deriving Eq', 'deriving Show', etc.
data EntityPrimary Source
'Primary name'
data EntityForeign Source
'Foreign Tree fkparent parent'
data WhiteSpace Source
Any white spaces that the user might want to maintain when generating Audit Models.
Haskell style comments that start with "-- "
data AuditAction Source
Annotations for each Audit Model to keep track of why it was inserted.