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

Hasura.Backends.MSSQL.Connection

Description

MSSQL Connection

This module handles the connection against an MS SQL Server. It defines the connection string, connection pool, default settings, and conversion functions between MSSQL and graphql-engine.

Synopsis

Documentation

class MonadError QErr m => MonadMSSQLTx m where Source #

Methods

liftMSSQLTx :: TxE QErr a -> m a Source #

Instances

Instances details
MonadIO m => MonadMSSQLTx (TxET QErr m) Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Methods

liftMSSQLTx :: TxE QErr a -> TxET QErr m a Source #

MonadMSSQLTx m => MonadMSSQLTx (ReaderT s m) Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Methods

liftMSSQLTx :: TxE QErr a -> ReaderT s m a Source #

MonadMSSQLTx m => MonadMSSQLTx (StateT s m) Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Methods

liftMSSQLTx :: TxE QErr a -> StateT s m a Source #

(Monoid w, MonadMSSQLTx m) => MonadMSSQLTx (WriterT w m) Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Methods

liftMSSQLTx :: TxE QErr a -> WriterT w m a Source #

Orphan instances

data MSSQLPoolSettings Source #

Instances

Instances details
FromJSON MSSQLPoolSettings Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

ToJSON MSSQLPoolSettings Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

HasCodec MSSQLPoolSettings Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Generic MSSQLPoolSettings Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Associated Types

type Rep MSSQLPoolSettings :: Type -> Type #

Show MSSQLPoolSettings Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

NFData MSSQLPoolSettings Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Methods

rnf :: MSSQLPoolSettings -> () #

Eq MSSQLPoolSettings Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Hashable MSSQLPoolSettings Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

type Rep MSSQLPoolSettings Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

type Rep MSSQLPoolSettings = D1 ('MetaData "MSSQLPoolSettings" "Hasura.Backends.MSSQL.Connection" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "MSSQLPoolSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "_mpsMaxConnections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "_mpsTotalMaxConnections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_mpsIdleTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) :+: C1 ('MetaCons "MSSQLPoolSettingsNoPool" 'PrefixI 'False) (U1 :: Type -> Type))

data MSSQLConnectionInfo Source #

Instances

Instances details
FromJSON MSSQLConnectionInfo Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

ToJSON MSSQLConnectionInfo Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

HasCodec MSSQLConnectionInfo Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Generic MSSQLConnectionInfo Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Associated Types

type Rep MSSQLConnectionInfo :: Type -> Type #

Show MSSQLConnectionInfo Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

NFData MSSQLConnectionInfo Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Methods

rnf :: MSSQLConnectionInfo -> () #

Eq MSSQLConnectionInfo Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Hashable MSSQLConnectionInfo Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

type Rep MSSQLConnectionInfo Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

data MSSQLConnConfiguration Source #

Instances

Instances details
FromJSON MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

ToJSON MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

HasCodec MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Generic MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Associated Types

type Rep MSSQLConnConfiguration :: Type -> Type #

Show MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

NFData MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Methods

rnf :: MSSQLConnConfiguration -> () #

Eq MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Hashable MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

type Rep MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

type Rep MSSQLConnConfiguration = D1 ('MetaData "MSSQLConnConfiguration" "Hasura.Backends.MSSQL.Connection" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "MSSQLConnConfiguration" 'PrefixI 'True) (S1 ('MetaSel ('Just "_mccConnectionInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MSSQLConnectionInfo) :*: S1 ('MetaSel ('Just "_mccReadReplicas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty MSSQLConnectionInfo)))))

data MSSQLExecCtx Source #

Execution Context required to execute MSSQL transactions

Constructors

MSSQLExecCtx 

Fields

mkMSSQLExecCtx :: TxIsolation -> MSSQLPool -> ResizePoolStrategy -> MSSQLExecCtx Source #

Creates a MSSQL execution context for a single primary pool

resizeMSSQLPool :: MSSQLPool -> Int -> ServerReplicas -> IO () Source #

Resize MSSQL pool by setting the number of connections equal to allowed maximum connections across all server instances divided by number of instances

mkMSSQLAnyQueryTx :: Query -> TxET QErr IO () Source #

Run any query discarding its results

data MSSQLSourceConfig Source #

Instances

Instances details
ToJSON MSSQLSourceConfig Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Generic MSSQLSourceConfig Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Associated Types

type Rep MSSQLSourceConfig :: Type -> Type #

Show MSSQLSourceConfig Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Eq MSSQLSourceConfig Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Has () MSSQLSourceConfig Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

type Rep MSSQLSourceConfig Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

type Rep MSSQLSourceConfig = D1 ('MetaData "MSSQLSourceConfig" "Hasura.Backends.MSSQL.Connection" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "MSSQLSourceConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "_mscConnectionString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ConnectionString) :*: (S1 ('MetaSel ('Just "_mscExecCtx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MSSQLExecCtx) :*: S1 ('MetaSel ('Just "_mscReadReplicas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

Orphan instances