Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 #
CohortResult (CohortId, Text) |
:: (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. |
runQueryExplain :: (MonadIO m, MonadError QErr m) => DBStepInfo 'MSSQL -> m EncJSON Source #
:: (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 |
runSubscription :: MonadIO m => SourceConfig 'MSSQL -> MultiplexedQuery 'MSSQL -> [(CohortId, CohortVariables)] -> m (DiffTime, Either QErr [(CohortId, ByteString)]) Source #
executeMultiplexedQuery :: MonadIO m => MSSQLExecCtx -> Query -> ExceptT QErr m [(CohortId, ByteString)] Source #
mkQueryLog :: GQLReqUnparsed -> RootFieldAlias -> Maybe (PreparedQuery 'MSSQL) -> RequestId -> QueryLog Source #