@@ -55,7 +55,9 @@ module Squeal.PostgreSQL.Schema
55 , SchemumType (..)
55 , SchemumType (..)
56 , SchemaType
56 , SchemaType
57 , SchemasType
57 , SchemasType
59 -- * Constraints
61 -- * Constraints
61 , ColumnConstraint (..)
63 , ColumnConstraint (..)
@@ -686,8 +688,13 @@ type SchemaType = [(Symbol,SchemumType)]
687type SchemasType = [(Symbol,SchemaType)]
689type SchemasType = [(Symbol,SchemaType)]
691+type family Public (schema :: SchemaType) :: SchemasType
692+ where Public schema = '["public" ::: schema]
689type DBType = (FromType,SchemasType)
694type DBType = (FromType,SchemasType)
696+type family DBof :: SchemasType -> DBType where DBof = '(,) '[]
691-- | `IsPGlabel` looks very much like the `IsLabel` class. Whereas
698-- | `IsPGlabel` looks very much like the `IsLabel` class. Whereas
692-- the overloaded label, `fromLabel` is used for column references,
699-- the overloaded label, `fromLabel` is used for column references,
693-- `label`s are used for enum terms. A `label` is called with
700-- `label`s are used for enum terms. A `label` is called with