Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
pgColumn :: DdTerm -> ([PgColumn], [(PgColumnName, StructureType)], Map PgTypeRef PgComposite, [NonEmpty PgColumnName]) Source #
comp :: Text -> Comp -> CompInc -> [DdTerm] -> (PgComposite, PgStructure, Map PgTypeRef PgComposite, Bool, [NonEmpty PgColumnName]) Source #
mkValues :: PgStructure -> [Sql] Source #
mkTable :: PgColumnName -> Maybe PgTableName -> PgColumns -> Map PgTypeRef PgComposite -> [NonEmpty PgColumnName] -> PgStructure -> PgTable a Source #
class MkTableSchema table where Source #
tableSchema :: Dd table -> TableSchema (DdType table) Source #
Instances
(ReifyDd table, ReifyCodec FullCodec table (DdType table)) => MkTableSchema table Source # | |
Defined in Sqel.PgType tableSchema :: Dd table -> TableSchema (DdType table) Source # |
class CheckedProjection' (check :: Maybe Void) (s :: DdK) where Source #
checkedProjection' :: Dd s -> ProjectionWitness (DdType s) table Source #
Instances
CheckedProjection' ('Nothing :: Maybe Void) s Source # | |
Defined in Sqel.PgType checkedProjection' :: forall {k1} (table :: k1). Dd s -> ProjectionWitness (DdType s) table Source # |
class CheckedProjection (proj :: DdK) (table :: DdK) where Source #
checkedProjection :: Dd proj -> ProjectionWitness (DdType proj) (DdType table) Source #
Instances
(MatchProjection proj table match, CheckedProjection' match proj) => CheckedProjection proj table Source # | |
Defined in Sqel.PgType 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 #
toFullProjection :: TableSchema table -> Projection table table Source #