Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AddSource b
- runAddSource :: forall m b. (MonadIO m, MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => Environment -> AddSource b -> m EncJSON
- data RenameSource
- runRenameSource :: forall m. (MonadError QErr m, CacheRWM m, MetadataM m) => RenameSource -> m EncJSON
- data DropSource = DropSource {
- _dsName :: SourceName
- _dsCascade :: Bool
- runDropSource :: forall m r. (MonadError QErr m, CacheRWM m, MonadIO m, MonadBaseControl IO m, MetadataM m, MonadReader r m, Has (Logger Hasura) r) => DropSource -> m EncJSON
- runPostDropSourceHook :: forall m r b. (MonadError QErr m, MonadIO m, MonadBaseControl IO m, MonadReader r m, Has (Logger Hasura) r, BackendMetadata b) => SourceName -> SourceInfo b -> m ()
- data UpdateSource b
- runUpdateSource :: forall m b. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => UpdateSource b -> m EncJSON
- newtype GetSourceTables (b :: BackendType) = GetSourceTables {}
- runGetSourceTrackables :: forall b m r. (BackendMetadata b, CacheRM m, MonadError QErr m, MetadataM m, MonadIO m, MonadBaseControl IO m, MonadReader r m, Has (Logger Hasura) r, ProvidesNetwork m) => GetSourceTrackables b -> m EncJSON
- newtype GetSourceTrackables (b :: BackendType) = GetSourceTrackables {}
- runGetSourceTables :: forall b m r. (BackendMetadata b, CacheRM m, MonadError QErr m, MetadataM m, MonadIO m, MonadBaseControl IO m, MonadReader r m, Has (Logger Hasura) r, ProvidesNetwork m) => GetSourceTables b -> m EncJSON
- data GetTableInfo_ = GetTableInfo_ {}
- runGetTableInfo_ :: (CacheRM m, MonadError QErr m, MetadataM m, MonadBaseControl IO m, MonadIO m) => GetTableInfo_ -> m EncJSON
- data GetTableInfo (b :: BackendType) = GetTableInfo {}
- runGetTableInfo :: forall b m. (BackendMetadata b, CacheRM m, MonadError QErr m, MetadataM m, MonadBaseControl IO m, MonadIO m) => GetTableInfo b -> m EncJSON
Documentation
Instances
Backend b => FromJSONWithContext (BackendSourceKind b) (AddSource b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Source parseJSONWithContext :: BackendSourceKind b -> Value -> Parser (AddSource b) Source # |
runAddSource :: forall m b. (MonadIO m, MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => Environment -> AddSource b -> m EncJSON Source #
data RenameSource Source #
Instances
FromJSON RenameSource Source # | |
Defined in Hasura.RQL.DDL.Schema.Source parseJSON :: Value -> Parser RenameSource Source # parseJSONList :: Value -> Parser [RenameSource] Source # | |
Generic RenameSource Source # | |
Defined in Hasura.RQL.DDL.Schema.Source type Rep RenameSource :: Type -> Type # from :: RenameSource -> Rep RenameSource x # to :: Rep RenameSource x -> RenameSource # | |
type Rep RenameSource Source # | |
Defined in Hasura.RQL.DDL.Schema.Source type Rep RenameSource = D1 ('MetaData "RenameSource" "Hasura.RQL.DDL.Schema.Source" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RenameSource" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rmName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceName) :*: S1 ('MetaSel ('Just "_rmNewName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceName))) |
runRenameSource :: forall m. (MonadError QErr m, CacheRWM m, MetadataM m) => RenameSource -> m EncJSON Source #
data DropSource Source #
Instances
FromJSON DropSource Source # | |
Defined in Hasura.RQL.DDL.Schema.Source parseJSON :: Value -> Parser DropSource Source # parseJSONList :: Value -> Parser [DropSource] Source # | |
Show DropSource Source # | |
Defined in Hasura.RQL.DDL.Schema.Source showsPrec :: Int -> DropSource -> ShowS # show :: DropSource -> String # showList :: [DropSource] -> ShowS # | |
Eq DropSource Source # | |
Defined in Hasura.RQL.DDL.Schema.Source (==) :: DropSource -> DropSource -> Bool # (/=) :: DropSource -> DropSource -> Bool # |
runDropSource :: forall m r. (MonadError QErr m, CacheRWM m, MonadIO m, MonadBaseControl IO m, MetadataM m, MonadReader r m, Has (Logger Hasura) r) => DropSource -> m EncJSON Source #
runPostDropSourceHook :: forall m r b. (MonadError QErr m, MonadIO m, MonadBaseControl IO m, MonadReader r m, Has (Logger Hasura) r, BackendMetadata b) => SourceName -> SourceInfo b -> m () Source #
data UpdateSource b Source #
Instances
Backend b => FromJSONWithContext (BackendSourceKind b) (UpdateSource b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Source parseJSONWithContext :: BackendSourceKind b -> Value -> Parser (UpdateSource b) Source # |
runUpdateSource :: forall m b. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => UpdateSource b -> m EncJSON Source #
newtype GetSourceTables (b :: BackendType) Source #
Instances
FromJSON (GetSourceTables b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Source parseJSON :: Value -> Parser (GetSourceTables b) Source # parseJSONList :: Value -> Parser [GetSourceTables b] Source # |
runGetSourceTrackables :: forall b m r. (BackendMetadata b, CacheRM m, MonadError QErr m, MetadataM m, MonadIO m, MonadBaseControl IO m, MonadReader r m, Has (Logger Hasura) r, ProvidesNetwork m) => GetSourceTrackables b -> m EncJSON Source #
Fetch a list of tables for the request data source.
newtype GetSourceTrackables (b :: BackendType) Source #
Instances
FromJSON (GetSourceTrackables b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Source parseJSON :: Value -> Parser (GetSourceTrackables b) Source # parseJSONList :: Value -> Parser [GetSourceTrackables b] Source # |
runGetSourceTables :: forall b m r. (BackendMetadata b, CacheRM m, MonadError QErr m, MetadataM m, MonadIO m, MonadBaseControl IO m, MonadReader r m, Has (Logger Hasura) r, ProvidesNetwork m) => GetSourceTables b -> m EncJSON Source #
Fetch a list of tables for the request data source.
data GetTableInfo_ Source #
Instances
FromJSON GetTableInfo_ Source # | |
Defined in Hasura.RQL.DDL.Schema.Source parseJSON :: Value -> Parser GetTableInfo_ Source # parseJSONList :: Value -> Parser [GetTableInfo_] Source # |
runGetTableInfo_ :: (CacheRM m, MonadError QErr m, MetadataM m, MonadBaseControl IO m, MonadIO m) => GetTableInfo_ -> m EncJSON Source #
Legacy data connector command. This doesn't use the DataConnector
ScalarType
to represent types.
data GetTableInfo (b :: BackendType) Source #
Instances
Backend b => FromJSON (GetTableInfo b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Source parseJSON :: Value -> Parser (GetTableInfo b) Source # parseJSONList :: Value -> Parser [GetTableInfo b] Source # |
runGetTableInfo :: forall b m. (BackendMetadata b, CacheRM m, MonadError QErr m, MetadataM m, MonadBaseControl IO m, MonadIO m) => GetTableInfo b -> m EncJSON Source #
Get information about the given table.