Database.PostgreSQL.ORM

The Model class and related types

class Model a

data ModelInfo a

defaultModelInfo

underscoreModelInfo

data DBKey

type DBRef

type DBRefUnique

mkDBRef

primaryKey

data h :. t

data As alias row

class RowAlias a

fromAs

Single-row operations

findRow

findAll

save

trySave

destroy

destroyByRef

Abstracted select queries

data DBSelect a

modelDBSelect

dbSelectParams

dbSelect

addWhere_

addWhere

setOrderBy

setLimit

setOffset

Associations between models

data Association a b

assocSelect

assocProject

assocWhere

findAssoc

Parent-child associations

data GDBRefInfo reftype child parent

type DBRefInfo

defaultDBRefInfo

dbrefAssocs

has

belongsTo

Join table associations

data JoinTable a b

defaultJoinTable

jtAssocs

jtAdd

jtRemove

jtRemoveByRef

Chaining associations

nestAssoc

chainAssoc

Validations

data ValidationError

validate

validateNotEmpty