sqel-0.0.1.0: Guided derivation for Hasql statements
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sqel.PgType

Documentation

pgTable :: forall s. ReifyDd s => Dd s -> PgTable (DdType s) Source #

class MkTableSchema table where Source #

Methods

tableSchema :: Dd table -> TableSchema (DdType table) Source #

Instances

Instances details
(ReifyDd table, ReifyCodec FullCodec table (DdType table)) => MkTableSchema table Source # 
Instance details

Defined in Sqel.PgType

Methods

tableSchema :: Dd table -> TableSchema (DdType table) Source #

class CheckedProjection' (check :: Maybe Void) (s :: DdK) where Source #

Instances

Instances details
CheckedProjection' ('Nothing :: Maybe Void) s Source # 
Instance details

Defined in Sqel.PgType

Methods

checkedProjection' :: forall {k1} (table :: k1). Dd s -> ProjectionWitness (DdType s) table Source #

class CheckedProjection (proj :: DdK) (table :: DdK) where Source #

Methods

checkedProjection :: Dd proj -> ProjectionWitness (DdType proj) (DdType table) Source #

Instances

Instances details
(MatchProjection proj table match, CheckedProjection' match proj) => CheckedProjection proj table Source # 
Instance details

Defined in Sqel.PgType

Methods

checkedProjection :: Dd proj -> ProjectionWitness (DdType proj) (DdType table) Source #

type CheckProjectionStuck = "Could not validate projection fields since there is not enough type information available." % (("You are most likely missing a constraint for " <> Quoted "CheckedProjection") <> ".") Source #

projectionWitness :: forall proj table. CheckedProjection proj table => Dd proj -> Dd table -> ProjectionWitness (DdType proj) (DdType table) Source #

projection :: MkTableSchema proj => MkTableSchema table => CheckedProjection proj table => Dd proj -> Dd table -> Projection (DdType proj) (DdType table) Source #

fullProjection :: MkTableSchema table => CheckedProjection table table => Dd table -> Projection (DdType table) (DdType table) Source #