| Copyright | © 2019 Shirren Premaratne | 
|---|---|
| License | MIT | 
| Maintainer | Shirren Premaratne <shirren.premaratne@gmail.com> | 
| Stability | stable | 
| Portability | portable | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Quokka.Types
Description
Types used by the Functions to generate test data and represent data and relational associations.
Synopsis
- data ChildTable = ChildTable Text [Text]
- type Data = [Text]
- newtype FK = FK Text
- newtype Id = Id {}
- data ParentTable = ParentTable Text [Text]
- newtype Table = Table Text
- data Relation = Relation ParentTable FK
- data Result = SingleResult ParentTable Id
- newtype Row a = Row [a]
Documentation
data ChildTable Source #
A child table represents a relation in Postgres with a foreign key to a parent table.
Constructors
| ChildTable Text [Text] | 
Represents the identity column of a row in a table. I.e. the primary key of a table which is limited to integers.
data ParentTable Source #
A parent table represents a relation in Postgres with no foreign keys.
Constructors
| ParentTable Text [Text] | 
A relation is defined as a parent table that is related through a custom foreign key.
Constructors
| Relation ParentTable FK | 
Represents a result retrieved by Quokka via Postgres-simple.
Constructors
| SingleResult ParentTable Id |