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 :: !Int32
- 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 !AltRowData
- | 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 ![[Text]]
- data AltMetaData = AltMetaData
- data AltRowData = AltRowData
- 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 = Int32
- 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 !Fixed0
- | DecimalS1 !Fixed1
- | DecimalS2 !Fixed2
- | DecimalS3 !Fixed3
- | DecimalS4 !Fixed4
- | DecimalS5 !Fixed5
- | DecimalS6 !Fixed6
- | DecimalS7 !Fixed7
- | DecimalS8 !Fixed8
- | DecimalS9 !Fixed9
- | DecimalS10 !Fixed10
- | DecimalS11 !Fixed11
- | DecimalS12 !Fixed12
- | DecimalS13 !Fixed13
- | DecimalS14 !Fixed14
- | DecimalS15 !Fixed15
- | DecimalS16 !Fixed16
- | DecimalS17 !Fixed17
- | DecimalS18 !Fixed18
- | DecimalS19 !Fixed19
- | DecimalS20 !Fixed20
- | DecimalS21 !Fixed21
- | DecimalS22 !Fixed22
- | DecimalS23 !Fixed23
- | DecimalS24 !Fixed24
- | DecimalS25 !Fixed25
- | DecimalS26 !Fixed26
- | DecimalS27 !Fixed27
- | DecimalS28 !Fixed28
- | DecimalS29 !Fixed29
- | DecimalS30 !Fixed30
- | DecimalS31 !Fixed31
- | DecimalS32 !Fixed32
- | DecimalS33 !Fixed33
- | DecimalS34 !Fixed34
- | DecimalS35 !Fixed35
- | DecimalS36 !Fixed36
- | DecimalS37 !Fixed37
- | DecimalS38 !Fixed38
- type Money = Fixed4
- decimal0 :: Decimal -> Fixed0
- decimal1 :: Decimal -> Fixed1
- decimal2 :: Decimal -> Fixed2
- decimal3 :: Decimal -> Fixed3
- decimal4 :: Decimal -> Fixed4
- decimal5 :: Decimal -> Fixed5
- decimal6 :: Decimal -> Fixed6
- decimal7 :: Decimal -> Fixed7
- decimal8 :: Decimal -> Fixed8
- decimal9 :: Decimal -> Fixed9
- decimal10 :: Decimal -> Fixed10
- decimal11 :: Decimal -> Fixed11
- decimal12 :: Decimal -> Fixed12
- decimal13 :: Decimal -> Fixed13
- decimal14 :: Decimal -> Fixed14
- decimal15 :: Decimal -> Fixed15
- decimal16 :: Decimal -> Fixed16
- decimal17 :: Decimal -> Fixed17
- decimal18 :: Decimal -> Fixed18
- decimal19 :: Decimal -> Fixed19
- decimal20 :: Decimal -> Fixed20
- decimal21 :: Decimal -> Fixed21
- decimal22 :: Decimal -> Fixed22
- decimal23 :: Decimal -> Fixed23
- decimal24 :: Decimal -> Fixed24
- decimal25 :: Decimal -> Fixed25
- decimal26 :: Decimal -> Fixed26
- decimal27 :: Decimal -> Fixed27
- decimal28 :: Decimal -> Fixed28
- decimal29 :: Decimal -> Fixed29
- decimal30 :: Decimal -> Fixed30
- decimal31 :: Decimal -> Fixed31
- decimal32 :: Decimal -> Fixed32
- decimal33 :: Decimal -> Fixed33
- decimal34 :: Decimal -> Fixed34
- decimal35 :: Decimal -> Fixed35
- decimal36 :: Decimal -> Fixed36
- decimal37 :: Decimal -> Fixed37
- decimal38 :: Decimal -> Fixed38
- 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 #
TSAltMetaData !AltMetaData | [MS-TDS] 2.2.7.1 ALTMETADATA (not supprted) |
TSAltRow !AltRowData | [MS-TDS] 2.2.7.2 ALTROW (not supprted) |
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 | [MS-TDS] 2.2.7.15 OFFSET (not tested) |
TSOrder ![Word16] | |
TSReturnStatus !Int32 | |
TSReturnValue !ReturnValue | |
TSRow ![RowColumnData] | |
TSSSPI !ByteString | [MS-TDS] 2.2.7.21 SSPI (not tested) |
TSTabName ![[Text]] |
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 # |
AltRowData
data AltRowData Source #
Instances
Show AltRowData Source # | |
Defined in Database.Tds.Message.Server showsPrec :: Int -> AltRowData -> ShowS # show :: AltRowData -> String # showList :: [AltRowData] -> 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 = Int32 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 #