client_conn

package
v0.0.0-...-b4c1251 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MasterComment    = "/*master*/"
	SumFunc          = "sum"
	CountFunc        = "count"
	MaxFunc          = "max"
	MinFunc          = "min"
	LastInsertIdFunc = "last_insert_id"
	FUNC_EXIST       = 1
)

Variables

View Source
var (
	ErrAccessDenied           = errors.New("access denied")
	ErrAccessDeniedNoPassword = fmt.Errorf("%w without password", ErrAccessDenied)
)

Functions

This section is empty.

Types

type ClientConn

type ClientConn struct {
	// contains filtered or unexported fields
}

func NewClientConn

func NewClientConn(co net.Conn, s *server.Server) *ClientConn

func (*ClientConn) Close

func (c *ClientConn) Close() error

func (*ClientConn) GetShardDb

func (c *ClientConn) GetShardDb(exePlan *plan.Plan) (map[string]*backend.DB, error)

func (*ClientConn) Handshake

func (c *ClientConn) Handshake() error

func (*ClientConn) PreHand

func (c *ClientConn) PreHand(sql string) (r *mysql.Result, isHand bool, isNotWriteResult bool, err error)

func (*ClientConn) Run

func (c *ClientConn) Run()

type ResultRow

type ResultRow struct {
	Value   []interface{}
	RowData mysql.RowData
}

type Stmt

type Stmt struct {
	// contains filtered or unexported fields
}

func (*Stmt) ResetParams

func (s *Stmt) ResetParams()

Jump to

Keyboard shortcuts

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