graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
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.

Documentation

newtype CohortResult Source #

Constructors

CohortResult (CohortId, Text) 

runQuery Source #

Arguments

:: (MonadIO m, MonadQueryLog m, MonadTrace m, MonadError QErr m) 
=> RequestId 
-> GQLReqUnparsed 
-> RootFieldAlias 
-> UserInfo 
-> Logger Hasura 
-> SourceConfig 'MSSQL 
-> ExceptT QErr IO EncJSON 
-> Maybe (PreparedQuery 'MSSQL) 
-> m (DiffTime, EncJSON)

Also return the time spent in the PG query; for telemetry.

runMutation Source #

Arguments

:: (MonadIO m, MonadQueryLog m, MonadTrace m, MonadError QErr m) 
=> RequestId 
-> GQLReqUnparsed 
-> RootFieldAlias 
-> UserInfo 
-> Logger Hasura 
-> SourceConfig 'MSSQL 
-> ExceptT QErr IO EncJSON 
-> Maybe (PreparedQuery 'MSSQL) 
-> m (DiffTime, EncJSON)

Also return Mutation when the operation was a mutation, and the time spent in the PG query; for telemetry.

run :: (MonadIO m, MonadError QErr m) => ExceptT QErr IO a -> m a Source #

Orphan instances