Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ClientMessage
- data Login7 = Login7 {
- l7TdsVersion :: !Word32
- l7PacketSize :: !Word32
- l7ClientProgVer :: !Word32
- l7ConnectionID :: !Word32
- l7OptionFlags1 :: !Word8
- l7OptionFlags2 :: !Word8
- l7OptionFlags3 :: !Word8
- l7TypeFlags :: !Word8
- l7TimeZone :: !Word32
- l7Collation :: !Collation32
- l7CltIntName :: !Text
- l7Language :: !Text
- l7ClientPID :: !Word32
- l7ClientMacAddr :: !ByteString
- l7ClientHostName :: !Text
- l7AppName :: !Text
- l7ServerName :: !Text
- l7UserName :: !Text
- l7Password :: !Text
- l7Database :: !Text
- defaultLogin7 :: Login7
- newtype SqlBatch = SqlBatch Text
- newtype RpcRequest = RpcRequest [RpcReqBatch]
- data RpcReqBatch
- type ProcID = Word16
- type ProcName = Text
- type OptionFlags = Word16
- data RpcReqBatchParam = RpcReqBatchParam !ParamName !StatusFlag !TypeInfo !RawBytes
- type ParamName = Text
- type StatusFlag = Word8
- newtype ServerMessage a = ServerMessage a
- class Binary a => ServerMessageInstance a
- newtype TokenStreams = TokenStreams [TokenStream]
- data TokenStream
- = TSAltMetaData !AltMetaData
- | TSAltRow
- | TSColInfo ![ColProperty]
- | TSColMetaData !(Maybe ColMetaData)
- | TSDone !Done
- | TSDoneInProc !Done
- | TSDoneProc !Done
- | TSEnvChange !ECType !ECNewValue !ECOldValue
- | TSError !Info
- | TSInfo !Info
- | TSLoginAck !LAInterface !LATdsVersion !LAProgName !LAProgVersion
- | TSOffset !Offset
- | TSOrder ![Word16]
- | TSReturnStatus !Int32
- | TSReturnValue !ReturnValue
- | TSRow ![RowColumnData]
- | TSSSPI !ByteString
- | TSTabName
- | TSOther !Word8
- data AltMetaData = AltMetaData
- data ColProperty = ColProperty !CPColNum !CPTableNum !CPStatus !(Maybe CPColName)
- type CPColNum = Word8
- type CPTableNum = Word8
- type CPStatus = Word8
- type CPColName = Text
- data ColMetaData = ColMetaData ![MetaColumnData]
- data MetaColumnData = MetaColumnData !MCDUserType !MCDFlags !TypeInfo !(Maybe MCDTableName) !MCDColName
- type MCDUserType = Word16
- type MCDFlags = Word16
- type MCDTableName = Text
- type MCDColName = Text
- data Done = Done !DoneStatus !DoneCurCmd !DoneRowCount
- type DoneStatus = Word16
- type DoneCurCmd = Word16
- type DoneRowCount = Word32
- type ECType = Word8
- type ECNewValue = ByteString
- type ECOldValue = ByteString
- data Info = Info !InfoNumber !InfoState !InfoClass !InfoMsgText !InfoServerName !InfoProcName !InfoLineNumber
- type InfoNumber = Int32
- type InfoState = Word8
- type InfoClass = Word8
- type InfoMsgText = Text
- type InfoServerName = Text
- type InfoProcName = Text
- type InfoLineNumber = Word16
- type LAInterface = Word8
- type LATdsVersion = Word32
- type LAProgName = Text
- type LAProgVersion = Word32
- type OffsetIdentifier = Word16
- type OffsetLength = Word16
- data Offset = Offset !OffsetIdentifier !OffsetLength
- data ReturnValue = ReturnValue !RVParamOrdinal !RVParamName !RVStatus !RVUserType !RVFlags !TypeInfo !RawBytes
- type RVParamOrdinal = Word16
- type RVParamName = Text
- type RVStatus = Word8
- type RVUserType = Word16
- type RVFlags = Word16
- data RowColumnData
- = RCDOrdinal !RawBytes
- | RCDLarge !(Maybe TextPointer) !(Maybe TimeStamp) !RawBytes
- type TextPointer = ByteString
- type TimeStamp = Word64
- data TypeInfo
- = TINull
- | TIBit
- | TIInt1
- | TIInt2
- | TIInt4
- | TIInt8
- | TIMoney4
- | TIMoney8
- | TIDateTime4
- | TIDateTime8
- | TIFlt4
- | TIFlt8
- | TIBitN
- | TIIntN1
- | TIIntN2
- | TIIntN4
- | TIIntN8
- | TIMoneyN4
- | TIMoneyN8
- | TIDateTimeN4
- | TIDateTimeN8
- | TIFltN4
- | TIFltN8
- | TIGUID
- | TIDecimalN !Precision !Scale
- | TINumericN !Precision !Scale
- | TIChar !Word8
- | TIVarChar !Word8
- | TIBigChar !Word16 !Collation
- | TIBigVarChar !Word16 !Collation
- | TIText !Word32 !Collation
- | TINChar !Word16 !Collation
- | TINVarChar !Word16 !Collation
- | TINText !Word32 !Collation
- | TIBinary !Word8
- | TIVarBinary !Word8
- | TIBigBinary !Word16
- | TIBigVarBinary !Word16
- | TIImage !Word32
- type RawBytes = Maybe ByteString
- class Data a where
- fromRawBytes :: TypeInfo -> RawBytes -> a
- toRawBytes :: TypeInfo -> a -> RawBytes
- data Null = Null
- type Precision = Word8
- type Scale = Word8
- data Decimal
- = DecimalS0 !Precision !Fixed0
- | DecimalS1 !Precision !Fixed1
- | DecimalS2 !Precision !Fixed2
- | DecimalS3 !Precision !Fixed3
- | DecimalS4 !Precision !Fixed4
- | DecimalS5 !Precision !Fixed5
- | DecimalS6 !Precision !Fixed6
- | DecimalS7 !Precision !Fixed7
- | DecimalS8 !Precision !Fixed8
- | DecimalS9 !Precision !Fixed9
- | DecimalS10 !Precision !Fixed10
- | DecimalS11 !Precision !Fixed11
- | DecimalS12 !Precision !Fixed12
- | DecimalS13 !Precision !Fixed13
- | DecimalS14 !Precision !Fixed14
- | DecimalS15 !Precision !Fixed15
- | DecimalS16 !Precision !Fixed16
- | DecimalS17 !Precision !Fixed17
- | DecimalS18 !Precision !Fixed18
- | DecimalS19 !Precision !Fixed19
- | DecimalS20 !Precision !Fixed20
- | DecimalS21 !Precision !Fixed21
- | DecimalS22 !Precision !Fixed22
- | DecimalS23 !Precision !Fixed23
- | DecimalS24 !Precision !Fixed24
- | DecimalS25 !Precision !Fixed25
- | DecimalS26 !Precision !Fixed26
- | DecimalS27 !Precision !Fixed27
- | DecimalS28 !Precision !Fixed28
- | DecimalS29 !Precision !Fixed29
- | DecimalS30 !Precision !Fixed30
- | DecimalS31 !Precision !Fixed31
- | DecimalS32 !Precision !Fixed32
- | DecimalS33 !Precision !Fixed33
- | DecimalS34 !Precision !Fixed34
- | DecimalS35 !Precision !Fixed35
- | DecimalS36 !Precision !Fixed36
- | DecimalS37 !Precision !Fixed37
- | DecimalS38 !Precision !Fixed38
- type Money = Fixed4
- data Collation = Collation !Collation32 !SortId
- type Collation32 = Word32
- type SortId = Word8
- newtype Prelogin = Prelogin [PreloginOption]
- data PreloginOption
- type MajorVer = Word8
- type MinorVer = Word8
- type BuildVer = Word16
- type SubBuildVer = Word16
- type Threadid = Word32
- type Connid = ByteString
- type Activity = ByteString
- type Sequence = Word32
- type Nonce = ByteString
Client Message
data ClientMessage Source #
Instances
Show ClientMessage Source # | |
Defined in Database.Tds.Message showsPrec :: Int -> ClientMessage -> ShowS # show :: ClientMessage -> String # showList :: [ClientMessage] -> ShowS # | |
Binary ClientMessage Source # | |
Defined in Database.Tds.Message |
Login
Login7 | |
|
SQL Batch
RPC Request
newtype RpcRequest Source #
Instances
Show RpcRequest Source # | |
Defined in Database.Tds.Message.Client showsPrec :: Int -> RpcRequest -> ShowS # show :: RpcRequest -> String # showList :: [RpcRequest] -> ShowS # | |
Binary RpcRequest Source # | |
Defined in Database.Tds.Message.Client |
data RpcReqBatch Source #
RpcReqBatchProcId !ProcID !OptionFlags ![RpcReqBatchParam] | |
RpcReqBatchProcName !ProcName !OptionFlags ![RpcReqBatchParam] |
Instances
Show RpcReqBatch Source # | |
Defined in Database.Tds.Message.Client showsPrec :: Int -> RpcReqBatch -> ShowS # show :: RpcReqBatch -> String # showList :: [RpcReqBatch] -> ShowS # |
type OptionFlags = Word16 Source #
data RpcReqBatchParam Source #
Instances
Show RpcReqBatchParam Source # | |
Defined in Database.Tds.Message.Client showsPrec :: Int -> RpcReqBatchParam -> ShowS # show :: RpcReqBatchParam -> String # showList :: [RpcReqBatchParam] -> ShowS # |
type StatusFlag = Word8 Source #
Server Message
newtype ServerMessage a Source #
Instances
Show a => Show (ServerMessage a) Source # | |
Defined in Database.Tds.Message showsPrec :: Int -> ServerMessage a -> ShowS # show :: ServerMessage a -> String # showList :: [ServerMessage a] -> ShowS # | |
ServerMessageInstance a => Binary (ServerMessage a) Source # | |
Defined in Database.Tds.Message |
class Binary a => ServerMessageInstance a Source #
Instances
ServerMessageInstance Prelogin Source # | |
Defined in Database.Tds.Message | |
ServerMessageInstance TokenStreams Source # | |
Defined in Database.Tds.Message |
newtype TokenStreams Source #
Instances
Show TokenStreams Source # | |
Defined in Database.Tds.Message.Server showsPrec :: Int -> TokenStreams -> ShowS # show :: TokenStreams -> String # showList :: [TokenStreams] -> ShowS # | |
Binary TokenStreams Source # | |
Defined in Database.Tds.Message.Server | |
ServerMessageInstance TokenStreams Source # | |
Defined in Database.Tds.Message |
data TokenStream Source #
Instances
Show TokenStream Source # | |
Defined in Database.Tds.Message.Server showsPrec :: Int -> TokenStream -> ShowS # show :: TokenStream -> String # showList :: [TokenStream] -> ShowS # |
AltMetaData
data AltMetaData Source #
Instances
Show AltMetaData Source # | |
Defined in Database.Tds.Message.Server showsPrec :: Int -> AltMetaData -> ShowS # show :: AltMetaData -> String # showList :: [AltMetaData] -> ShowS # |
ColProperty
data ColProperty Source #
Instances
Show ColProperty Source # | |
Defined in Database.Tds.Message.Server showsPrec :: Int -> ColProperty -> ShowS # show :: ColProperty -> String # showList :: [ColProperty] -> ShowS # |
type CPTableNum = Word8 Source #
ColMetaData
data ColMetaData Source #
Instances
Show ColMetaData Source # | |
Defined in Database.Tds.Message.Server showsPrec :: Int -> ColMetaData -> ShowS # show :: ColMetaData -> String # showList :: [ColMetaData] -> ShowS # |
data MetaColumnData Source #
Instances
Show MetaColumnData Source # | |
Defined in Database.Tds.Message.Server showsPrec :: Int -> MetaColumnData -> ShowS # show :: MetaColumnData -> String # showList :: [MetaColumnData] -> ShowS # |
type MCDUserType = Word16 Source #
type MCDTableName = Text Source #
type MCDColName = Text Source #
Done, DoneInProc, DoneProc
type DoneStatus = Word16 Source #
type DoneCurCmd = Word16 Source #
type DoneRowCount = Word32 Source #
EnvChange
type ECNewValue = ByteString Source #
type ECOldValue = ByteString Source #
Error, Info
type InfoNumber = Int32 Source #
type InfoMsgText = Text Source #
type InfoServerName = Text Source #
type InfoProcName = Text Source #
type InfoLineNumber = Word16 Source #
LoginAck
type LAInterface = Word8 Source #
type LATdsVersion = Word32 Source #
type LAProgName = Text Source #
type LAProgVersion = Word32 Source #
Offset
type OffsetIdentifier = Word16 Source #
type OffsetLength = Word16 Source #
ReturnValue
data ReturnValue Source #
Instances
Show ReturnValue Source # | |
Defined in Database.Tds.Message.Server showsPrec :: Int -> ReturnValue -> ShowS # show :: ReturnValue -> String # showList :: [ReturnValue] -> ShowS # |
type RVParamOrdinal = Word16 Source #
type RVParamName = Text Source #
type RVUserType = Word16 Source #
Row
data RowColumnData Source #
Instances
Show RowColumnData Source # | |
Defined in Database.Tds.Message.Server showsPrec :: Int -> RowColumnData -> ShowS # show :: RowColumnData -> String # showList :: [RowColumnData] -> ShowS # |
type TextPointer = ByteString Source #
Primitives
type RawBytes = Maybe ByteString Source #
fromRawBytes :: TypeInfo -> RawBytes -> a Source #
toRawBytes :: TypeInfo -> a -> RawBytes Source #
Instances
type Collation32 = Word32 Source #
Prelogin
data PreloginOption Source #
Instances
Show PreloginOption Source # | |
Defined in Database.Tds.Message.Prelogin showsPrec :: Int -> PreloginOption -> ShowS # show :: PreloginOption -> String # showList :: [PreloginOption] -> ShowS # |
type SubBuildVer = Word16 Source #
type Connid = ByteString Source #
type Activity = ByteString Source #
type Nonce = ByteString Source #