Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseBody ¶
type CloseBody struct {
StatementID int
}
CloseBody ...
func DecodeStmtClose ¶
DecodeStmtClose ...
type PrepareResponse ¶
type PrepareResponse struct { StatementID int // 4 bytes ColumnNumber int // 2 bytes ParamNumber int // 2 bytes // filter 0x00 Warnings int // 2 bytes ColumnDef []command.Columndef }
func DecodePrepareResponse ¶
func DecodePrepareResponse(src *parse.Source) (*PrepareResponse, error)
DecodePrepareResponse 解码prepare语句的response
func (*PrepareResponse) String ¶
func (s *PrepareResponse) String() string
type QueryBody ¶
type QueryBody struct {
RawQuery string
}
QueryBody ...
func DecodePreparedQuery ¶
DecodePreparedQuery ...
type ResetBody ¶
type ResetBody struct {
StatementID int
}
ResetBody ...
func DecodeStmtReset ¶
DecodeStmtReset ...
type SendLongDataBody ¶
QueryBody ...
func DecodeSendLongDataQuery ¶
func DecodeSendLongDataQuery(src *parse.Source) (*SendLongDataBody, error)
DecodeSendLongDataQuery ... 发送BLOB类型的数据 doc: https://dev.mysql.com/doc/internals/en/com-stmt-send-long-data.html
func (*SendLongDataBody) String ¶
func (p *SendLongDataBody) String() string
type StmtExecuteBody ¶
StmtExecuteBody client发起执行stmt的packet 由于解析过于复杂,这期先不做
func DecodeStmtExecutePacket ¶
func DecodeStmtExecutePacket(src *parse.Source) (*StmtExecuteBody, error)
DecodeStmtExecutePacket 解码stmt execute包 解析过于复杂,这期先不做 doc: https://dev.mysql.com/doc/internals/en/com-stmt-execute.html
func (*StmtExecuteBody) String ¶
func (s *StmtExecuteBody) String() string
type StmtExecuteResponse ¶
StmtExecuteResponse ...
func DecodeStmtExecuteResonsePacket ¶
func DecodeStmtExecuteResonsePacket(src *parse.Source) (*StmtExecuteResponse, error)
DecodeStmtExecuteResonsePacket 解码stmt execute的返回结果 doc: https://dev.mysql.com/doc/internals/en/com-stmt-execute-response.html
Click to show internal directories.
Click to hide internal directories.