Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data PrimaryTag = PrimaryTag
- data DefaultTag = DefaultTag
- data ReadReplicasTag = ReadReplicasTag
- data ConnectionSetMemberTemplateContext = ConnectionSetMemberTemplateContext {
- _cseType :: ConnectionSetTemplateContextType
- _cseName :: PostgresConnectionSetMemberName
- mkConnectionSetMemberTemplateContext :: PostgresConnectionSetMemberName -> ConnectionSetMemberTemplateContext
- data PostgresResolvedConnectionTemplate
- data RequestContextHeaders = RequestContextHeaders (HashMap Text Text)
- data ConnectionSetTemplateContext
- newtype QueryOperationType = QueryOperationType OperationType
- data QueryContext = QueryContext {}
- data RequestContext = RequestContext {}
- data PostgresConnectionTemplateContext = PostgresConnectionTemplateContext {}
- makeConnectionTemplateContext :: RequestContext -> [PostgresConnectionSetMemberName] -> PostgresConnectionTemplateContext
- runKritiEval :: PostgresConnectionTemplateContext -> KritiTemplate -> Either EvalError Value
- makeRequestContext :: Maybe QueryContext -> [Header] -> SessionVariables -> RequestContext
Documentation
data PrimaryTag Source #
This connection tag represents primary database connection
Instances
data DefaultTag Source #
This connection tag represents default behaviour of database connections.
For example, if read replica is set, then it will redirect GQL queries to read replicas and mutations to the primary connection
Instances
data ReadReplicasTag Source #
This connection tag represents read replica database connection
Instances
data ConnectionSetMemberTemplateContext Source #
Data type for single member in connection_set for connection template context
ConnectionSetMemberTemplateContext | |
|
Instances
mkConnectionSetMemberTemplateContext :: PostgresConnectionSetMemberName -> ConnectionSetMemberTemplateContext Source #
data PostgresResolvedConnectionTemplate Source #
Outcome of the connection template resolution
PCTODefault DefaultTag | |
PCTOPrimary PrimaryTag | |
PCTOReadReplicas ReadReplicasTag | |
PCTOConnectionSet PostgresConnectionSetMemberName |
Instances
data RequestContextHeaders Source #
Headers information for the connection template context
Instances
FromJSON RequestContextHeaders Source # | |
ToJSON RequestContextHeaders Source # | |
Generic RequestContextHeaders Source # | |
Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate type Rep RequestContextHeaders :: Type -> Type # | |
Show RequestContextHeaders Source # | |
Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate showsPrec :: Int -> RequestContextHeaders -> ShowS # show :: RequestContextHeaders -> String # showList :: [RequestContextHeaders] -> ShowS # | |
type Rep RequestContextHeaders Source # | |
Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate type Rep RequestContextHeaders = D1 ('MetaData "RequestContextHeaders" "Hasura.Backends.Postgres.Execute.ConnectionTemplate" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RequestContextHeaders" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text)))) |
data ConnectionSetTemplateContext Source #
Data type for connection_set for connection template context
Instances
newtype QueryOperationType Source #
Instances
data QueryContext Source #
Query information (operation name and operation type) for connection template context
Instances
data RequestContext Source #
Request information for connection template context
Instances
data PostgresConnectionTemplateContext Source #
The complete connection template context used for resolving connection template
Instances
makeConnectionTemplateContext :: RequestContext -> [PostgresConnectionSetMemberName] -> PostgresConnectionTemplateContext Source #
Construct template context
runKritiEval :: PostgresConnectionTemplateContext -> KritiTemplate -> Either EvalError Value Source #
We should move this to Data.Aeson.Kriti.Functions
makeRequestContext :: Maybe QueryContext -> [Header] -> SessionVariables -> RequestContext Source #