graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.RQL.Types.Metadata.Common

Description

In order to avoid circular dependencies while splitting Metadata into multiple modules, some definitions must be moved out of that module. This module is the bucket for definitions that have not been specifically moved elsewhere.

Synopsis

Documentation

data SourceMetadata b Source #

Source configuration for a source of backend type b as stored in the Metadata DB.

Instances

Instances details
Backend b => HasCodec (SourceMetadata b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Generic (SourceMetadata b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Associated Types

type Rep (SourceMetadata b) :: Type -> Type #

Backend b => Show (SourceMetadata b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Backend b => Eq (SourceMetadata b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Backend b => FromJSONWithContext (BackendSourceKind b) (SourceMetadata b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

type Rep (SourceMetadata b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

type Rep (SourceMetadata b) = D1 ('MetaData "SourceMetadata" "Hasura.RQL.Types.Metadata.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SourceMetadata" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_smName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceName) :*: S1 ('MetaSel ('Just "_smKind") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (BackendSourceKind b))) :*: (S1 ('MetaSel ('Just "_smTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Tables b)) :*: (S1 ('MetaSel ('Just "_smFunctions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Functions b)) :*: S1 ('MetaSel ('Just "_smNativeQueries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NativeQueries b))))) :*: ((S1 ('MetaSel ('Just "_smStoredProcedures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (StoredProcedures b)) :*: (S1 ('MetaSel ('Just "_smLogicalModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (LogicalModels b)) :*: S1 ('MetaSel ('Just "_smConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (SourceConnConfiguration b)))) :*: (S1 ('MetaSel ('Just "_smQueryTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe QueryTagsConfig)) :*: (S1 ('MetaSel ('Just "_smCustomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceCustomization) :*: S1 ('MetaSel ('Just "_smHealthCheckConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HealthCheckConfig b))))))))

newtype BackendSourceMetadata Source #

Source configuration as stored in the Metadata DB for some existentialized backend.

newtype BackendConfigWrapper b Source #

This newtype simply wraps the BackendConfig type family so that it can be used with BackendMap in the Metadata type. GHC will not allow the type family to be used directly. :(

Instances

Instances details
Backend b => FromJSON (BackendConfigWrapper b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Backend b => ToJSON (BackendConfigWrapper b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Backend b => HasCodec (BackendConfigWrapper b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Monoid (BackendConfig b) => Monoid (BackendConfigWrapper b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Semigroup (BackendConfig b) => Semigroup (BackendConfigWrapper b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Backend b => Show (BackendConfigWrapper b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Backend b => Eq (BackendConfigWrapper b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

data CatalogStateType Source #

Constructors

CSTCli 
CSTConsole 

Instances

Instances details
FromJSON CatalogStateType Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

ToJSON CatalogStateType Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Generic CatalogStateType Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Associated Types

type Rep CatalogStateType :: Type -> Type #

Show CatalogStateType Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Eq CatalogStateType Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

type Rep CatalogStateType Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

type Rep CatalogStateType = D1 ('MetaData "CatalogStateType" "Hasura.RQL.Types.Metadata.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "CSTCli" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CSTConsole" 'PrefixI 'False) (U1 :: Type -> Type))

data SetCatalogState Source #

Instances

Instances details
FromJSON SetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

ToJSON SetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Generic SetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Associated Types

type Rep SetCatalogState :: Type -> Type #

Show SetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Eq SetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

type Rep SetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

type Rep SetCatalogState = D1 ('MetaData "SetCatalogState" "Hasura.RQL.Types.Metadata.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SetCatalogState" 'PrefixI 'True) (S1 ('MetaSel ('Just "_scsType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CatalogStateType) :*: S1 ('MetaSel ('Just "_scsState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Value)))

data CatalogState Source #

Constructors

CatalogState 

Instances

Instances details
ToJSON CatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Generic CatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Associated Types

type Rep CatalogState :: Type -> Type #

Show CatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Eq CatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

type Rep CatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

type Rep CatalogState = D1 ('MetaData "CatalogState" "Hasura.RQL.Types.Metadata.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "CatalogState" 'PrefixI 'True) (S1 ('MetaSel ('Just "_csId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "_csCliState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Value) :*: S1 ('MetaSel ('Just "_csConsoleState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Value))))

data GetCatalogState Source #

Constructors

GetCatalogState 

Instances

Instances details
FromJSON GetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

ToJSON GetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Generic GetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Associated Types

type Rep GetCatalogState :: Type -> Type #

Show GetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

Eq GetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

type Rep GetCatalogState Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Common

type Rep GetCatalogState = D1 ('MetaData "GetCatalogState" "Hasura.RQL.Types.Metadata.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "GetCatalogState" 'PrefixI 'False) (U1 :: Type -> Type))