Documentation
¶
Index ¶
- type Config
- type ConnectorProvider
- type CreateDatabaseOptions
- type DBProvider
- type Handler
- func (h *Handler) HandleFieldList(table string, fieldWildcard string) ([]*mysql.Field, error)
- func (h *Handler) HandleOtherCommand(cmd byte, data []byte) error
- func (h *Handler) HandleQuery(query string) (*mysql.Result, error)
- func (h *Handler) HandleStmtClose(context any) error
- func (h *Handler) HandleStmtExecute(context any, query string, args []any) (*mysql.Result, error)
- func (h *Handler) HandleStmtPrepare(query string) (int, int, any, error)
- func (h *Handler) UseDB(dbName string) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Port int
User string
Pass string
ConnectorProvider ConnectorProvider
DBProvider DBProvider
CreateDatabaseOptions CreateDatabaseOptions
}
type ConnectorProvider ¶ added in v0.10.1
type CreateDatabaseOptions ¶ added in v0.6.3
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) HandleFieldList ¶
HandleFieldList is called for COM_FIELD_LIST packets Note that COM_FIELD_LIST has been deprecated since MySQL 5.7.11 https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_com_field_list.html
func (*Handler) HandleOtherCommand ¶
func (*Handler) HandleStmtClose ¶
func (*Handler) HandleStmtExecute ¶
func (*Handler) HandleStmtPrepare ¶
type Server ¶
type Server struct {
ConnectorProvider ConnectorProvider
DBProvider DBProvider
Port int
User string
Pass string
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.