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

Hasura.RQL.Types.Source

Synopsis

Documentation

data DBObjectsIntrospection b Source #

Contains metadata (introspection) from the database, used to build the schema cache. This type only contains results of introspecting DB objects, i.e. the DB types specified by tables, functions, and scalars. Notably, it does not include the additional introspection that takes place on Postgres, namely reading the contents of tables used as Enum Values -- see fetchAndValidateEnumValues.

Instances

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

Defined in Hasura.RQL.Types.Source

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

Defined in Hasura.RQL.Types.Source

Generic (DBObjectsIntrospection b) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

Associated Types

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

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

Defined in Hasura.RQL.Types.Source

ToEngineLog (DBObjectsIntrospection b) Hasura Source # 
Instance details

Defined in Hasura.RQL.Types.Source

type Rep (DBObjectsIntrospection b) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

type Rep (DBObjectsIntrospection b) = D1 ('MetaData "DBObjectsIntrospection" "Hasura.RQL.Types.Source" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "DBObjectsIntrospection" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_rsTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (DBTablesMetadata b)) :*: S1 ('MetaSel ('Just "_rsFunctions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (DBFunctionsMetadata b))) :*: (S1 ('MetaSel ('Just "_rsScalars") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ScalarMap b)) :*: S1 ('MetaSel ('Just "_rsLogicalModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (LogicalModels b)))))

newtype ScalarMap b Source #

A map from GraphQL name to equivalent scalar type for a given backend.

Constructors

ScalarMap (HashMap Name (ScalarType b)) 

Instances

Instances details
Monoid (ScalarMap b) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

Semigroup (ScalarMap b) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

Methods

(<>) :: ScalarMap b -> ScalarMap b -> ScalarMap b #

sconcat :: NonEmpty (ScalarMap b) -> ScalarMap b #

stimes :: Integral b0 => b0 -> ScalarMap b -> ScalarMap b #

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

Defined in Hasura.RQL.Types.Source

Methods

(==) :: ScalarMap b -> ScalarMap b -> Bool #

(/=) :: ScalarMap b -> ScalarMap b -> Bool #

type SourceResolver b = Environment -> SourceName -> SourceConnConfiguration b -> IO (Either QErr (SourceConfig b)) Source #

FIXME: this should be either in BackendMetadata, or into a new dedicated BackendResolve, instead of listing backends explicitly. It could also be moved to the app level.

class Monad m => MonadResolveSource m where Source #

Instances

Instances details
MonadResolveSource AppM Source # 
Instance details

Defined in Hasura.App

MonadResolveSource CacheBuild Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Cache.Common

MonadResolveSource m => MonadResolveSource (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

MonadResolveSource m => MonadResolveSource (TraceT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

MonadResolveSource m => MonadResolveSource (TxET QErr m) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

MonadResolveSource m => MonadResolveSource (ExceptT e m) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

MonadResolveSource m => MonadResolveSource (ReaderT r m) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

MonadResolveSource m => MonadResolveSource (StateT s m) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

data MaintenanceModeVersion Source #

Constructors

PreviousMMVersion

should correspond to the source catalog version from which the user is migrating from

CurrentMMVersion

should correspond to the latest source catalog version