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) )
View Source
var DEFAULT_CAPABILITY uint32 = mysql.CLIENT_LONG_PASSWORD | mysql.CLIENT_LONG_FLAG | mysql.CLIENT_CONNECT_WITH_DB | mysql.CLIENT_PROTOCOL_41 | mysql.CLIENT_TRANSACTIONS | mysql.CLIENT_SECURE_CONNECTION
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 (*ClientConn) Handshake ¶
func (c *ClientConn) Handshake() error
func (*ClientConn) Run ¶
func (c *ClientConn) Run()
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func (*Stmt) ResetParams ¶
func (s *Stmt) ResetParams()
Click to show internal directories.
Click to hide internal directories.