Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Column = Column {
- name :: Name
- type_ :: Type
- isNullable :: Bool
- description :: Maybe Text
Documentation
A schematic representation which captures common attributes associated with a piece of data that is stored in a given backend.
These attributes ascribe meaningful semantics to the data that they are associated with.
cf. https://en.wikipedia.org/wiki/Column_(database) https://www.postgresql.org/docs/13/ddl-basics.html
XXX: Instead of an isNullable
flag, should we instead add a Nullable
data constructor to Type
?
Column | |
|
Instances
Eq Column Source # | |
Data Column Source # | |
Defined in Hasura.Backends.DataConnector.Schema.Column gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Column -> c Column # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Column # toConstr :: Column -> Constr # dataTypeOf :: Column -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Column) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Column) # gmapT :: (forall b. Data b => b -> b) -> Column -> Column # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Column -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Column -> r # gmapQ :: (forall d. Data d => d -> u) -> Column -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Column -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Column -> m Column # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Column -> m Column # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Column -> m Column # | |
Ord Column Source # | |
Defined in Hasura.Backends.DataConnector.Schema.Column | |
Show Column Source # | |
Generic Column Source # | |
type Rep Column Source # | |
Defined in Hasura.Backends.DataConnector.Schema.Column type Rep Column = D1 ('MetaData "Column" "Hasura.Backends.DataConnector.Schema.Column" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Column" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Type)) :*: (S1 ('MetaSel ('Just "isNullable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) |