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

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 #

newtype MSSQLConnectionString Source #

ODBC connection string for MSSQL server

Constructors

MSSQLConnectionString 

Fields

Orphan instances

data MSSQLConnConfiguration Source #

Instances

Instances details
Eq MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Show 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 #

NFData MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Methods

rnf :: MSSQLConnConfiguration -> () #

HasCodec MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Hashable MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

FromJSON MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Methods

parseJSON :: Value -> Parser MSSQLConnConfiguration

parseJSONList :: Value -> Parser [MSSQLConnConfiguration]

ToJSON MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Cacheable MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

type Rep MSSQLConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

getEnv :: QErrM m => Environment -> Text -> m Text Source #

type MSSQLRunTx = forall m a. (MonadIO m, MonadBaseControl IO m) => TxET QErr m a -> ExceptT QErr m a Source #

data MSSQLExecCtx Source #

Execution Context required to execute MSSQL transactions

Constructors

MSSQLExecCtx 

Fields

mkMSSQLExecCtx :: MSSQLPool -> MSSQLExecCtx Source #

Creates a MSSQL execution context for a single primary pool

data MSSQLSourceConfig Source #

Instances

Instances details
Eq MSSQLSourceConfig Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Show 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 #

ToJSON MSSQLSourceConfig Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Cacheable 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)))

odbcValueToJValue :: Value -> Value Source #

runMSSQLSourceReadTx :: (MonadIO m, MonadBaseControl IO m) => MSSQLSourceConfig -> TxET QErr m a -> m (Either QErr a) Source #

runMSSQLSourceWriteTx :: (MonadIO m, MonadBaseControl IO m) => MSSQLSourceConfig -> TxET QErr m a -> m (Either QErr a) Source #

Orphan instances