graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Database.MSSQL.Pool

Description

MSSQL Connection Pooling

Synopsis

Documentation

newtype ConnectionString Source #

ODBC connection string for MSSQL server

Constructors

ConnectionString 

Fields

Instances

Instances details
Eq ConnectionString Source # 
Instance details

Defined in Database.MSSQL.Pool

Show ConnectionString Source # 
Instance details

Defined in Database.MSSQL.Pool

Generic ConnectionString Source # 
Instance details

Defined in Database.MSSQL.Pool

Associated Types

type Rep ConnectionString :: Type -> Type #

NFData ConnectionString Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

Methods

rnf :: ConnectionString -> () #

Hashable ConnectionString 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

FromJSON ConnectionString Source # 
Instance details

Defined in Database.MSSQL.Pool

Methods

parseJSON :: Value -> Parser ConnectionString

parseJSONList :: Value -> Parser [ConnectionString]

ToJSON ConnectionString Source # 
Instance details

Defined in Database.MSSQL.Pool

Cacheable ConnectionString Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Connection

type Rep ConnectionString Source # 
Instance details

Defined in Database.MSSQL.Pool

type Rep ConnectionString = D1 ('MetaData "ConnectionString" "Database.MSSQL.Pool" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "ConnectionString" 'PrefixI 'True) (S1 ('MetaSel ('Just "unConnectionString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype MSSQLPool Source #

ODBC connection pool

Constructors

MSSQLPool (Pool Connection) 

initMSSQLPool :: ConnectionString -> ConnectionOptions -> IO MSSQLPool Source #

Initialize an MSSQL pool with given connection configuration

drainMSSQLPool :: MSSQLPool -> IO () Source #

Destroy all pool resources

withMSSQLPool :: MonadBaseControl IO m => MSSQLPool -> (Connection -> m a) -> m (Either ODBCException a) Source #