persistent-audit-0.1.0.3: Parses a Persist Model file and produces Audit Models

Safe HaskellNone
LanguageHaskell2010

Database.Persist.Audit.Types

Synopsis

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 Entity Source #

A single Persist Model Entity.

Constructors

Entity 

data Strictness Source #

Table rows can be strict or lazy

Constructors

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 WhiteSpace Source #

Any white spaces that the user might want to maintain when generating Audit Models.

Constructors

WhiteSpace 

Fields

data Comment Source #

Haskell style comments that start with "-- "

Constructors

Comment 

Fields

data AuditAction Source #

Annotations for each Audit Model to keep track of why it was inserted.

Constructors

Create 
Delete 
Update 

Instances

Eq AuditAction Source # 
Ord AuditAction Source # 
Read AuditAction Source # 
Show AuditAction Source # 
Generic AuditAction Source # 

Associated Types

type Rep AuditAction :: * -> * #

ToJSON AuditAction Source # 
FromJSON AuditAction Source # 
Hashable AuditAction Source # 
PersistFieldSql AuditAction Source # 
PersistField AuditAction Source # 
type Rep AuditAction Source # 
type Rep AuditAction = D1 (MetaData "AuditAction" "Database.Persist.Audit.Types" "persistent-audit-0.1.0.3-WYasNlGBPCASFhx6N35OC" False) ((:+:) (C1 (MetaCons "Create" PrefixI False) U1) ((:+:) (C1 (MetaCons "Delete" PrefixI False) U1) (C1 (MetaCons "Update" PrefixI False) U1)))