Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data TrackTable b = TrackTable {}
- data SetTableIsEnum = SetTableIsEnum {}
- data UntrackTable b = UntrackTable {}
- isTableTracked :: forall b. Backend b => SourceInfo b -> TableName b -> Bool
- trackExistingTableOrViewP1 :: forall b m. (QErrM m, CacheRWM m, Backend b, MetadataM m) => SourceName -> TableName b -> m ()
- checkConflictingNode :: forall m. MonadError QErr m => SchemaCache -> Text -> m ()
- trackExistingTableOrViewP2 :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => SourceName -> TableName b -> Bool -> TableConfig b -> Maybe ApolloFederationConfig -> m EncJSON
- runTrackTableQ :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => TrackTable b -> m EncJSON
- data TrackTableV2 b = TrackTableV2 {
- ttv2Table :: TrackTable b
- ttv2Configuration :: TableConfig b
- runTrackTableV2Q :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => TrackTableV2 b -> m EncJSON
- runSetExistingTableIsEnumQ :: (MonadError QErr m, CacheRWM m, MetadataM m) => SetTableIsEnum -> m EncJSON
- data SetTableCustomization b = SetTableCustomization {}
- data SetTableCustomFields = SetTableCustomFields {
- _stcfSource :: SourceName
- _stcfTable :: QualifiedTable
- _stcfCustomRootFields :: TableCustomRootFields
- _stcfCustomColumnNames :: HashMap (Column ('Postgres 'Vanilla)) Name
- runSetTableCustomFieldsQV2 :: (QErrM m, CacheRWM m, MetadataM m) => SetTableCustomFields -> m EncJSON
- runSetTableCustomization :: forall b m. (QErrM m, CacheRWM m, MetadataM m, Backend b, BackendMetadata b) => SetTableCustomization b -> m EncJSON
- unTrackExistingTableOrViewP1 :: forall b m. (CacheRM m, QErrM m, Backend b) => UntrackTable b -> m ()
- unTrackExistingTableOrViewP2 :: forall b m. (CacheRWM m, QErrM m, MetadataM m, BackendMetadata b, BackendEventTrigger b, MonadIO m) => UntrackTable b -> m EncJSON
- runUntrackTableQ :: forall b m. (CacheRWM m, QErrM m, MetadataM m, BackendMetadata b, BackendEventTrigger b, MonadIO m) => UntrackTable b -> m EncJSON
- buildTableCache :: forall arr m b. (ArrowChoice arr, ArrowDistribute arr, ArrowWriter (Seq CollectedInfo) arr, ArrowCache m arr, MonadIO m, MonadBaseControl IO m, BackendMetadata b) => (SourceName, SourceConfig b, DBTablesMetadata b, [TableBuildInput b], Dependency InvalidationKey, NamingCase) `arr` HashMap (TableName b) (TableCoreInfoG b (ColumnInfo b) (ColumnInfo b))
- data SetApolloFederationConfig b = SetApolloFederationConfig {}
- runSetApolloFederationConfig :: forall b m. (QErrM m, CacheRWM m, MetadataM m, Backend b, BackendMetadata b) => SetApolloFederationConfig b -> m EncJSON
Documentation
data TrackTable b Source #
TrackTable | |
|
Instances
Backend b => Eq (TrackTable b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table (==) :: TrackTable b -> TrackTable b -> Bool # (/=) :: TrackTable b -> TrackTable b -> Bool # | |
Backend b => Show (TrackTable b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table showsPrec :: Int -> TrackTable b -> ShowS # show :: TrackTable b -> String # showList :: [TrackTable b] -> ShowS # | |
Backend b => FromJSON (TrackTable b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table parseJSON :: Value -> Parser (TrackTable b) parseJSONList :: Value -> Parser [TrackTable b] |
data SetTableIsEnum Source #
Instances
Eq SetTableIsEnum Source # | |
Defined in Hasura.RQL.DDL.Schema.Table (==) :: SetTableIsEnum -> SetTableIsEnum -> Bool # (/=) :: SetTableIsEnum -> SetTableIsEnum -> Bool # | |
Show SetTableIsEnum Source # | |
Defined in Hasura.RQL.DDL.Schema.Table showsPrec :: Int -> SetTableIsEnum -> ShowS # show :: SetTableIsEnum -> String # showList :: [SetTableIsEnum] -> ShowS # | |
FromJSON SetTableIsEnum Source # | |
Defined in Hasura.RQL.DDL.Schema.Table parseJSON :: Value -> Parser SetTableIsEnum parseJSONList :: Value -> Parser [SetTableIsEnum] |
data UntrackTable b Source #
Instances
Backend b => Eq (UntrackTable b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table (==) :: UntrackTable b -> UntrackTable b -> Bool # (/=) :: UntrackTable b -> UntrackTable b -> Bool # | |
Backend b => Show (UntrackTable b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table showsPrec :: Int -> UntrackTable b -> ShowS # show :: UntrackTable b -> String # showList :: [UntrackTable b] -> ShowS # | |
Backend b => FromJSON (UntrackTable b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table parseJSON :: Value -> Parser (UntrackTable b) parseJSONList :: Value -> Parser [UntrackTable b] |
isTableTracked :: forall b. Backend b => SourceInfo b -> TableName b -> Bool Source #
trackExistingTableOrViewP1 :: forall b m. (QErrM m, CacheRWM m, Backend b, MetadataM m) => SourceName -> TableName b -> m () Source #
Track table/view, Phase 1: Validate table tracking operation. Fails if table is already being tracked, or if a function with the same name is being tracked.
checkConflictingNode :: forall m. MonadError QErr m => SchemaCache -> Text -> m () Source #
Check whether a given name would conflict with the current schema by doing an internal introspection
trackExistingTableOrViewP2 :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => SourceName -> TableName b -> Bool -> TableConfig b -> Maybe ApolloFederationConfig -> m EncJSON Source #
runTrackTableQ :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => TrackTable b -> m EncJSON Source #
data TrackTableV2 b Source #
Instances
Backend b => Eq (TrackTableV2 b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table (==) :: TrackTableV2 b -> TrackTableV2 b -> Bool # (/=) :: TrackTableV2 b -> TrackTableV2 b -> Bool # | |
Backend b => Show (TrackTableV2 b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table showsPrec :: Int -> TrackTableV2 b -> ShowS # show :: TrackTableV2 b -> String # showList :: [TrackTableV2 b] -> ShowS # | |
Backend b => FromJSON (TrackTableV2 b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table parseJSON :: Value -> Parser (TrackTableV2 b) parseJSONList :: Value -> Parser [TrackTableV2 b] |
runTrackTableV2Q :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => TrackTableV2 b -> m EncJSON Source #
runSetExistingTableIsEnumQ :: (MonadError QErr m, CacheRWM m, MetadataM m) => SetTableIsEnum -> m EncJSON Source #
data SetTableCustomization b Source #
SetTableCustomization | |
|
Instances
Backend b => Eq (SetTableCustomization b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table (==) :: SetTableCustomization b -> SetTableCustomization b -> Bool # (/=) :: SetTableCustomization b -> SetTableCustomization b -> Bool # | |
Backend b => Show (SetTableCustomization b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table showsPrec :: Int -> SetTableCustomization b -> ShowS # show :: SetTableCustomization b -> String # showList :: [SetTableCustomization b] -> ShowS # | |
Backend b => FromJSON (SetTableCustomization b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table parseJSON :: Value -> Parser (SetTableCustomization b) parseJSONList :: Value -> Parser [SetTableCustomization b] |
data SetTableCustomFields Source #
SetTableCustomFields | |
|
Instances
Eq SetTableCustomFields Source # | |
Defined in Hasura.RQL.DDL.Schema.Table (==) :: SetTableCustomFields -> SetTableCustomFields -> Bool # (/=) :: SetTableCustomFields -> SetTableCustomFields -> Bool # | |
Show SetTableCustomFields Source # | |
Defined in Hasura.RQL.DDL.Schema.Table showsPrec :: Int -> SetTableCustomFields -> ShowS # show :: SetTableCustomFields -> String # showList :: [SetTableCustomFields] -> ShowS # | |
FromJSON SetTableCustomFields Source # | |
Defined in Hasura.RQL.DDL.Schema.Table parseJSON :: Value -> Parser SetTableCustomFields parseJSONList :: Value -> Parser [SetTableCustomFields] |
runSetTableCustomFieldsQV2 :: (QErrM m, CacheRWM m, MetadataM m) => SetTableCustomFields -> m EncJSON Source #
runSetTableCustomization :: forall b m. (QErrM m, CacheRWM m, MetadataM m, Backend b, BackendMetadata b) => SetTableCustomization b -> m EncJSON Source #
unTrackExistingTableOrViewP1 :: forall b m. (CacheRM m, QErrM m, Backend b) => UntrackTable b -> m () Source #
unTrackExistingTableOrViewP2 :: forall b m. (CacheRWM m, QErrM m, MetadataM m, BackendMetadata b, BackendEventTrigger b, MonadIO m) => UntrackTable b -> m EncJSON Source #
runUntrackTableQ :: forall b m. (CacheRWM m, QErrM m, MetadataM m, BackendMetadata b, BackendEventTrigger b, MonadIO m) => UntrackTable b -> m EncJSON Source #
buildTableCache :: forall arr m b. (ArrowChoice arr, ArrowDistribute arr, ArrowWriter (Seq CollectedInfo) arr, ArrowCache m arr, MonadIO m, MonadBaseControl IO m, BackendMetadata b) => (SourceName, SourceConfig b, DBTablesMetadata b, [TableBuildInput b], Dependency InvalidationKey, NamingCase) `arr` HashMap (TableName b) (TableCoreInfoG b (ColumnInfo b) (ColumnInfo b)) Source #
Builds an initial table cache. Does not fill in permissions or event triggers, and the returned
FieldInfoMap
s only contain columns, not relationships; those pieces of information are filled
in later.
data SetApolloFederationConfig b Source #
SetApolloFederationConfig | |
|
Instances
Backend b => FromJSON (SetApolloFederationConfig b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Table parseJSON :: Value -> Parser (SetApolloFederationConfig b) parseJSONList :: Value -> Parser [SetApolloFederationConfig b] |
runSetApolloFederationConfig :: forall b m. (QErrM m, CacheRWM m, MetadataM m, Backend b, BackendMetadata b) => SetApolloFederationConfig b -> m EncJSON Source #