Documentation ¶
Overview ¶
Transaction Manager requests http://msdn.microsoft.com/en-us/library/dd339887.aspx
Index ¶
- Constants
- Variables
- func CheckBadConn(err error) error
- func NewTimeoutConn(conn net.Conn, timeout time.Duration) *timeoutConn
- type Auth
- type Decimal
- type Error
- type KeySlice
- type Logger
- type MssqlConn
- type MssqlDriver
- type MssqlResult
- type MssqlRows
- type MssqlStmt
- func (s *MssqlStmt) Close() error
- func (s *MssqlStmt) Exec(args []driver.Value) (res driver.Result, err error)
- func (s *MssqlStmt) NumInput() int
- func (s *MssqlStmt) Query(args []driver.Value) (res driver.Rows, err error)
- func (s *MssqlStmt) SetQueryNotification(id, options string, timeout time.Duration)
- type NTLMAuth
- type Param
- type ProcId
- type StreamError
Constants ¶
View Source
const ( NEGOTIATE_MESSAGE = 1 CHALLENGE_MESSAGE = 2 AUTHENTICATE_MESSAGE = 3 )
View Source
const ( NEGOTIATE_UNICODE = 0x00000001 NEGOTIATE_OEM = 0x00000002 NEGOTIATE_TARGET = 0x00000004 NEGOTIATE_SIGN = 0x00000010 NEGOTIATE_SEAL = 0x00000020 NEGOTIATE_DATAGRAM = 0x00000040 NEGOTIATE_LMKEY = 0x00000080 NEGOTIATE_NTLM = 0x00000200 NEGOTIATE_ANONYMOUS = 0x00000800 NEGOTIATE_OEM_DOMAIN_SUPPLIED = 0x00001000 NEGOTIATE_OEM_WORKSTATION_SUPPLIED = 0x00002000 NEGOTIATE_ALWAYS_SIGN = 0x00008000 NEGOTIATE_TARGET_TYPE_DOMAIN = 0x00010000 NEGOTIATE_TARGET_TYPE_SERVER = 0x00020000 NEGOTIATE_EXTENDED_SESSIONSECURITY = 0x00080000 NEGOTIATE_IDENTIFY = 0x00100000 REQUEST_NON_NT_SESSION_KEY = 0x00400000 NEGOTIATE_TARGET_INFO = 0x00800000 NEGOTIATE_VERSION = 0x02000000 NEGOTIATE_128 = 0x20000000 NEGOTIATE_KEY_EXCH = 0x40000000 NEGOTIATE_56 = 0x80000000 )
View Source
const NEGOTIATE_FLAGS = NEGOTIATE_UNICODE | NEGOTIATE_NTLM | NEGOTIATE_OEM_DOMAIN_SUPPLIED | NEGOTIATE_OEM_WORKSTATION_SUPPLIED | NEGOTIATE_ALWAYS_SIGN | NEGOTIATE_EXTENDED_SESSIONSECURITY
Variables ¶
View Source
var ( Sp_Cursor = ProcId{1, ""} Sp_CursorOpen = ProcId{2, ""} Sp_CursorPrepare = ProcId{3, ""} Sp_CursorExecute = ProcId{4, ""} Sp_CursorPrepExec = ProcId{5, ""} Sp_CursorUnprepare = ProcId{6, ""} Sp_CursorFetch = ProcId{7, ""} Sp_CursorOption = ProcId{8, ""} Sp_CursorClose = ProcId{9, ""} Sp_ExecuteSql = ProcId{10, ""} Sp_Prepare = ProcId{11, ""} Sp_PrepExec = ProcId{13, ""} Sp_PrepExecRpc = ProcId{14, ""} Sp_Unprepare = ProcId{15, ""} )
Functions ¶
func CheckBadConn ¶
Types ¶
type Decimal ¶
type Decimal struct {
// contains filtered or unexported fields
}
http://msdn.microsoft.com/en-us/library/ee780893.aspx
func Float64ToDecimal ¶
type Error ¶
type MssqlDriver ¶
type MssqlDriver struct {
// contains filtered or unexported fields
}
func (*MssqlDriver) SetLogger ¶
func (d *MssqlDriver) SetLogger(logger *log.Logger)
type MssqlResult ¶
type MssqlResult struct {
// contains filtered or unexported fields
}
func (*MssqlResult) LastInsertId ¶
func (r *MssqlResult) LastInsertId() (int64, error)
func (*MssqlResult) RowsAffected ¶
func (r *MssqlResult) RowsAffected() (int64, error)
type MssqlStmt ¶
type MssqlStmt struct {
// contains filtered or unexported fields
}
type NTLMAuth ¶
func (*NTLMAuth) InitialBytes ¶
type StreamError ¶
type StreamError struct {
Message string
}
func (StreamError) Error ¶
func (e StreamError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.