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

Hasura.Backends.MSSQL.Instances.Transport

Description

MSSQL Instances Transport

Defines the MSSQL instance of BackendTransport and how to interact with the database for running queries, mutations, subscriptions, and so on.

Orphan instances

BackendTransport 'MSSQL Source # 
Instance details

Methods

runDBQuery :: (MonadIO m, MonadBaseControl IO m, MonadError QErr m, MonadQueryLog m, MonadExecutionLog m, MonadTrace m) => RequestId -> GQLReqUnparsed -> RootFieldAlias -> UserInfo -> Logger Hasura -> Maybe (CredentialCache AgentLicenseKey) -> SourceConfig 'MSSQL -> OnBaseMonad (ExecutionMonad 'MSSQL) (Maybe (AnyBackend ExecutionStats), EncJSON) -> Maybe (PreparedQuery 'MSSQL) -> ResolvedConnectionTemplate 'MSSQL -> m (DiffTime, EncJSON) Source #

runDBMutation :: (MonadIO m, MonadBaseControl IO m, MonadError QErr m, MonadQueryLog m, MonadTrace m) => RequestId -> GQLReqUnparsed -> RootFieldAlias -> UserInfo -> Logger Hasura -> Maybe (CredentialCache AgentLicenseKey) -> SourceConfig 'MSSQL -> OnBaseMonad (ExecutionMonad 'MSSQL) EncJSON -> Maybe (PreparedQuery 'MSSQL) -> ResolvedConnectionTemplate 'MSSQL -> m (DiffTime, EncJSON) Source #

runDBSubscription :: (MonadIO m, MonadBaseControl IO m) => SourceConfig 'MSSQL -> MultiplexedQuery 'MSSQL -> [(CohortId, CohortVariables)] -> ResolvedConnectionTemplate 'MSSQL -> m (DiffTime, Either QErr [(CohortId, ByteString)]) Source #

runDBStreamingSubscription :: (MonadIO m, MonadBaseControl IO m) => SourceConfig 'MSSQL -> MultiplexedQuery 'MSSQL -> [(CohortId, CohortVariables)] -> ResolvedConnectionTemplate 'MSSQL -> m (DiffTime, Either QErr [(CohortId, ByteString, CursorVariableValues)]) Source #

runDBQueryExplain :: (MonadIO m, MonadError QErr m, MonadBaseControl IO m, MonadTrace m) => Maybe (CredentialCache AgentLicenseKey) -> DBStepInfo 'MSSQL -> m EncJSON Source #