graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.RQL.Types.Source

Synopsis

Documentation

data SourceInfo b Source #

Instances

Instances details
Generic (SourceInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

Associated Types

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

Methods

from :: SourceInfo b -> Rep (SourceInfo b) x #

to :: Rep (SourceInfo b) x -> SourceInfo b #

(Backend b, ToJSON (TableCache b), ToJSON (FunctionCache b), ToJSON (SourceConfig b), ToJSON QueryTagsConfig, ToJSON SourceCustomization) => ToJSON (SourceInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

Methods

toJSON :: SourceInfo b -> Value

toEncoding :: SourceInfo b -> Encoding

toJSONList :: [SourceInfo b] -> Value

toEncodingList :: [SourceInfo b] -> Encoding

type Rep (SourceInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

siTables :: forall b. Lens' (SourceInfo b) (TableCache b) Source #

siName :: forall b. Lens' (SourceInfo b) SourceName Source #

siFunctions :: forall b. Lens' (SourceInfo b) (FunctionCache b) Source #

siConfiguration :: forall b. Lens' (SourceInfo b) (SourceConfig b) Source #

data ResolvedSource b Source #

Contains Postgres connection configuration and essential metadata from the database to build schema cache for tables and function.

Instances

Instances details
ToEngineLog (ResolvedSource b) Hasura Source # 
Instance details

Defined in Hasura.RQL.Types.Source

data ScalarMap b where Source #

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

Constructors

ScalarMap :: Backend b => HashMap Name (ScalarType b) -> ScalarMap b 

Instances

Instances details
Backend b => 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 => Monoid (ScalarMap b) Source # 
Instance details

Defined in Hasura.RQL.Types.Source

type SourceResolver b = 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 CacheBuild Source # 
Instance details

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

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

Defined in Hasura.RQL.Types.Source

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

Defined in Hasura.Metadata.Class

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

Defined in Hasura.RQL.Types.Run

Monad m => MonadResolveSource (PGMetadataStorageAppT m) Source # 
Instance details

Defined in Hasura.App

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 (TxET QErr 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