| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
PgSchema.Schema.Info
Description
Internal module: ordinary (term-level) ADTs matching the shape of rows returned when querying PostgreSQL system catalogs during schema introspection.
This is not part of the application-facing pg-schema API; these types are used
in the generation pipeline and in internal plumbing. Application code should not
import this module: field layout may change together with the generator.
The module appears in the package export list for technical reasons (tests, shared dependencies, hidden modules). Do not rely on it as a library compatibility boundary.
Synopsis
- data PgClass = PgClass {
- class__namespace :: "nspname" := Text
- relname :: Text
- relkind :: PgChar
- attribute__class :: [PgAttribute]
- constraint__class :: [PgConstraint]
- data PgClassShort = PgClassShort {
- class__namespace :: "nspname" := Text
- relname :: Text
- data PgAttribute = PgAttribute {
- attname :: Text
- attribute__type :: PgType
- attnum :: Int16
- attnotnull :: Bool
- atthasdef :: Bool
- data PgConstraint = PgConstraint {}
- data PgType = PgType {
- oid :: PgOid
- type__namespace :: "nspname" := Text
- typname :: Text
- typcategory :: PgChar
- typelem :: PgOid
- enum__type :: [PgEnum]
- data PgEnum = PgEnum {
- enumlabel :: Text
- enumsortorder :: Double
- data PgRelation = PgRelation {
- constraint__namespace :: "nspname" := Text
- conname :: Text
- constraint__class :: PgClassShort
- constraint__fclass :: PgClassShort
- conkey :: PgArr Int16
- confkey :: PgArr Int16
Documentation
Tables and views info
Constructors
| PgClass | |
Fields
| |
Instances
data PgClassShort Source #
Constructors
| PgClassShort | |
Fields
| |
Instances
| Generic PgClassShort Source # | |||||
Defined in PgSchema.Schema.Info Associated Types
| |||||
| Show PgClassShort Source # | |||||
Defined in PgSchema.Schema.Info Methods showsPrec :: Int -> PgClassShort -> ShowS # show :: PgClassShort -> String # showList :: [PgClassShort] -> ShowS # | |||||
| Eq PgClassShort Source # | |||||
Defined in PgSchema.Schema.Info | |||||
| type Rep PgClassShort Source # | |||||
Defined in PgSchema.Schema.Info type Rep PgClassShort = D1 ('MetaData "PgClassShort" "PgSchema.Schema.Info" "pg-schema-0.5.0.0-inplace" 'False) (C1 ('MetaCons "PgClassShort" 'PrefixI 'True) (S1 ('MetaSel ('Just "class__namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ("nspname" := Text)) :*: S1 ('MetaSel ('Just "relname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data PgAttribute Source #
Constructors
| PgAttribute | |
Fields
| |
Instances
| Generic PgAttribute Source # | |||||
Defined in PgSchema.Schema.Info Associated Types
| |||||
| Show PgAttribute Source # | |||||
Defined in PgSchema.Schema.Info Methods showsPrec :: Int -> PgAttribute -> ShowS # show :: PgAttribute -> String # showList :: [PgAttribute] -> ShowS # | |||||
| Eq PgAttribute Source # | |||||
Defined in PgSchema.Schema.Info | |||||
| type Rep PgAttribute Source # | |||||
Defined in PgSchema.Schema.Info type Rep PgAttribute = D1 ('MetaData "PgAttribute" "PgSchema.Schema.Info" "pg-schema-0.5.0.0-inplace" 'False) (C1 ('MetaCons "PgAttribute" 'PrefixI 'True) ((S1 ('MetaSel ('Just "attname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "attribute__type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PgType)) :*: (S1 ('MetaSel ('Just "attnum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int16) :*: (S1 ('MetaSel ('Just "attnotnull") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "atthasdef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) | |||||
data PgConstraint Source #
Constructors
| PgConstraint | |
Instances
| Generic PgConstraint Source # | |||||
Defined in PgSchema.Schema.Info Associated Types
| |||||
| Show PgConstraint Source # | |||||
Defined in PgSchema.Schema.Info Methods showsPrec :: Int -> PgConstraint -> ShowS # show :: PgConstraint -> String # showList :: [PgConstraint] -> ShowS # | |||||
| Eq PgConstraint Source # | |||||
Defined in PgSchema.Schema.Info | |||||
| type Rep PgConstraint Source # | |||||
Defined in PgSchema.Schema.Info type Rep PgConstraint = D1 ('MetaData "PgConstraint" "PgSchema.Schema.Info" "pg-schema-0.5.0.0-inplace" 'False) (C1 ('MetaCons "PgConstraint" 'PrefixI 'True) ((S1 ('MetaSel ('Just "constraint__namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ("nspname" := Text)) :*: S1 ('MetaSel ('Just "conname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "contype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PgChar) :*: S1 ('MetaSel ('Just "conkey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PgArr Int16))))) | |||||
Types info
Constructors
| PgType | |
Fields
| |
Instances
| Generic PgType Source # | |||||
Defined in PgSchema.Schema.Info Associated Types
| |||||
| Show PgType Source # | |||||
| Eq PgType Source # | |||||
| type Rep PgType Source # | |||||
Defined in PgSchema.Schema.Info type Rep PgType = D1 ('MetaData "PgType" "PgSchema.Schema.Info" "pg-schema-0.5.0.0-inplace" 'False) (C1 ('MetaCons "PgType" 'PrefixI 'True) ((S1 ('MetaSel ('Just "oid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PgOid) :*: (S1 ('MetaSel ('Just "type__namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ("nspname" := Text)) :*: S1 ('MetaSel ('Just "typname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "typcategory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PgChar) :*: (S1 ('MetaSel ('Just "typelem") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PgOid) :*: S1 ('MetaSel ('Just "enum__type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PgEnum]))))) | |||||
Constructors
| PgEnum | |
Fields
| |
Instances
| Generic PgEnum Source # | |||||
Defined in PgSchema.Schema.Info Associated Types
| |||||
| Show PgEnum Source # | |||||
| Eq PgEnum Source # | |||||
| type Rep PgEnum Source # | |||||
Defined in PgSchema.Schema.Info type Rep PgEnum = D1 ('MetaData "PgEnum" "PgSchema.Schema.Info" "pg-schema-0.5.0.0-inplace" 'False) (C1 ('MetaCons "PgEnum" 'PrefixI 'True) (S1 ('MetaSel ('Just "enumlabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "enumsortorder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) | |||||
data PgRelation Source #
Foreign key info
Constructors
| PgRelation | |
Fields
| |
Instances
| Generic PgRelation Source # | |||||
Defined in PgSchema.Schema.Info Associated Types
| |||||
| Show PgRelation Source # | |||||
Defined in PgSchema.Schema.Info Methods showsPrec :: Int -> PgRelation -> ShowS # show :: PgRelation -> String # showList :: [PgRelation] -> ShowS # | |||||
| Eq PgRelation Source # | |||||
Defined in PgSchema.Schema.Info | |||||
| type Rep PgRelation Source # | |||||
Defined in PgSchema.Schema.Info type Rep PgRelation = D1 ('MetaData "PgRelation" "PgSchema.Schema.Info" "pg-schema-0.5.0.0-inplace" 'False) (C1 ('MetaCons "PgRelation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "constraint__namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ("nspname" := Text)) :*: (S1 ('MetaSel ('Just "conname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "constraint__class") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PgClassShort))) :*: (S1 ('MetaSel ('Just "constraint__fclass") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PgClassShort) :*: (S1 ('MetaSel ('Just "conkey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PgArr Int16)) :*: S1 ('MetaSel ('Just "confkey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PgArr Int16)))))) | |||||