prepared

package
v1.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

func DecodeStmtClose(src *parse.Source) (*CloseBody, error)

DecodeStmtClose ...

func (*CloseBody) Map

func (p *CloseBody) Map() model.Map

Map ...

func (*CloseBody) String

func (p *CloseBody) String() string

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) Map

func (s *PrepareResponse) Map() model.Map

Map ...

func (*PrepareResponse) String

func (s *PrepareResponse) String() string

type QueryBody

type QueryBody struct {
	RawQuery string
}

QueryBody ...

func DecodePreparedQuery

func DecodePreparedQuery(src *parse.Source) (*QueryBody, error)

DecodePreparedQuery ...

func (*QueryBody) Map

func (p *QueryBody) Map() model.Map

Map ...

func (*QueryBody) String

func (p *QueryBody) String() string

type ResetBody

type ResetBody struct {
	StatementID int
}

ResetBody ...

func DecodeStmtReset

func DecodeStmtReset(src *parse.Source) (*ResetBody, error)

DecodeStmtReset ...

func (*ResetBody) Map

func (p *ResetBody) Map() model.Map

Map ...

func (*ResetBody) String

func (p *ResetBody) String() string

type SendLongDataBody

type SendLongDataBody struct {
	StatementID int
	ParamID     int
	Data        string
}

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) Map

func (p *SendLongDataBody) Map() model.Map

Map ...

func (*SendLongDataBody) String

func (p *SendLongDataBody) String() string

type StmtExecuteBody

type StmtExecuteBody struct {
	StatementID int
	Flag        byte
	ExtraBytes  []byte
}

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) Map

func (s *StmtExecuteBody) Map() model.Map

Map ...

func (*StmtExecuteBody) String

func (s *StmtExecuteBody) String() string

type StmtExecuteResponse

type StmtExecuteResponse struct {
	ColumnNum  int
	ColumnDef  []command.Columndef
	ExtraBytes []byte
}

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

func (*StmtExecuteResponse) Map

func (s *StmtExecuteResponse) Map() model.Map

Map ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL