Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Table = Table {
- name :: Name
- columns :: [Column]
- primaryKey :: Maybe Text
- description :: Maybe Text
Documentation
A schematic representation which captures a named collection of columns
TODO(cdparks): schematic in the sense of "relating to a schema" or symbolic?
This language is also used in the Column
documentation
An element of a table is known as a row, record, tuple, or object,
and conforms to the shape specified by the list of Column
s below.
cf. https://en.wikipedia.org/wiki/Table_(database) https://www.postgresql.org/docs/13/ddl-basics.html
NOTE(jkachmar): This type shouldn't _need_ ser/de instances, but they're
imposed by the Backend
class.
Table | |
|
Instances
Eq Table Source # | |
Data Table Source # | |
Defined in Hasura.Backends.DataConnector.Schema.Table gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Table -> c Table # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Table # dataTypeOf :: Table -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Table) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Table) # gmapT :: (forall b. Data b => b -> b) -> Table -> Table # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Table -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Table -> r # gmapQ :: (forall d. Data d => d -> u) -> Table -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Table -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Table -> m Table # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Table -> m Table # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Table -> m Table # | |
Ord Table Source # | |
Show Table Source # | |
Generic Table Source # | |
type Rep Table Source # | |
Defined in Hasura.Backends.DataConnector.Schema.Table type Rep Table = D1 ('MetaData "Table" "Hasura.Backends.DataConnector.Schema.Table" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Table" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name) :*: S1 ('MetaSel ('Just "columns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Column])) :*: (S1 ('MetaSel ('Just "primaryKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) |