Safe Haskell | None |
---|---|
Language | Haskell2010 |
MSSQL Connection Pooling
Synopsis
- newtype ConnectionString = ConnectionString {
- unConnectionString :: Text
- data ConnectionOptions = ConnectionOptions {
- _coConnections :: Int
- _coStripes :: Int
- _coIdleTime :: Int
- newtype MSSQLPool = MSSQLPool (Pool Connection)
- initMSSQLPool :: ConnectionString -> ConnectionOptions -> IO MSSQLPool
- drainMSSQLPool :: MSSQLPool -> IO ()
- withMSSQLPool :: MonadBaseControl IO m => MSSQLPool -> (Connection -> m a) -> m (Either ODBCException a)
Documentation
newtype ConnectionString Source #
ODBC connection string for MSSQL server
ConnectionString | |
|
Instances
data ConnectionOptions Source #
Instances
Eq ConnectionOptions Source # | |
Defined in Database.MSSQL.Pool (==) :: ConnectionOptions -> ConnectionOptions -> Bool # (/=) :: ConnectionOptions -> ConnectionOptions -> Bool # | |
Show ConnectionOptions Source # | |
Defined in Database.MSSQL.Pool showsPrec :: Int -> ConnectionOptions -> ShowS # show :: ConnectionOptions -> String # showList :: [ConnectionOptions] -> ShowS # |
initMSSQLPool :: ConnectionString -> ConnectionOptions -> IO MSSQLPool Source #
Initialize an MSSQL pool with given connection configuration
drainMSSQLPool :: MSSQLPool -> IO () Source #
Destroy all pool resources