tds-0.1.0.0: Pure Haskell TDS protocol implementation. Mainly for beam-mssql and beam-sybase

Safe HaskellNone
LanguageHaskell2010

Database.TDS.Types

Contents

Synopsis

Documentation

data ClientState Source #

Client state type based on recommendation on page 120

connectionTimeout :: ConnectionTimeout Source #

Connection timeout in seconds

Protocol Errors

data TDSError where Source #

Constructors

TDSError 

Fields

Options

data TdsAuth Source #

Constructors

TdsAuth 
Instances
Eq TdsAuth Source # 
Instance details

Defined in Database.TDS.Types

Methods

(==) :: TdsAuth -> TdsAuth -> Bool #

(/=) :: TdsAuth -> TdsAuth -> Bool #

Ord TdsAuth Source # 
Instance details

Defined in Database.TDS.Types

Show TdsAuth Source # 
Instance details

Defined in Database.TDS.Types

Connection object

data ResponseResult (ty :: ResponseType *) where Source #

Instances
Show (ResponseResult ty) Source # 
Instance details

Defined in Database.TDS.Types

data CancelInfo (canCancel :: Bool) where Source #

class MkCancelable (canCancel :: Bool) where Source #

Methods

mkCancelable :: STM (CancelInfo canCancel) Source #

Instances
MkCancelable False Source # 
Instance details

Defined in Database.TDS.Types

MkCancelable True Source # 
Instance details

Defined in Database.TDS.Types

data Connection Source #

Constructors

Connection 

Fields

isConnected :: Connection -> IO Bool Source #

Returns True if the client is connected to the server. False otherwise

isReady :: Connection -> IO Bool Source #

Returns True if the client is ready to send commands to the server. False otherwise

isBusy :: Connection -> IO Bool Source #

Returns True if the server is busy processing a request. False otherwise

isCancelable :: Connection -> IO Bool Source #

Returns True if the server is processing a request that can be canceled. False otherwise