Copyright | © 2019 Shirren Premaratne |
---|---|
License | MIT |
Maintainer | Shirren Premaratne <shirren.premaratne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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.
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.
A relation is defined as a parent table that is related through a custom foreign key.
Represents a result retrieved by Quokka via Postgres-simple.