quokka-0.1.0.0: Test helpers which help generate data for projects that use postgresql.

Copyright© 2019 Shirren Premaratne
LicenseMIT
MaintainerShirren Premaratne <shirren.premaratne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Quokka.Types

Description

Types used by the Functions to generate test data and represent data and relational associations.

Documentation

data ChildTable Source #

Constructors

ChildTable Text [Text] 

type Data = [Text] Source #

newtype Id Source #

Constructors

Id 

Fields

Instances
Eq Id Source # 
Instance details

Defined in Quokka.Types

Methods

(==) :: Id -> Id -> Bool #

(/=) :: Id -> Id -> Bool #

Show Id Source # 
Instance details

Defined in Quokka.Types

Methods

showsPrec :: Int -> Id -> ShowS #

show :: Id -> String #

showList :: [Id] -> ShowS #

FromRow Id Source # 
Instance details

Defined in Quokka.Types

Methods

fromRow :: RowParser Id #

ToField Id Source # 
Instance details

Defined in Quokka.Types

Methods

toField :: Id -> Action #

data ParentTable Source #

Constructors

ParentTable Text [Text] 

newtype Table Source #

Constructors

Table Text 

newtype Row a Source #

Constructors

Row [a] 
Instances
ToField a => ToRow (Row a) Source # 
Instance details

Defined in Quokka.Types

Methods

toRow :: Row a -> [Action] #