handle COM_INIT_DB command, you can check whether the dbName is valid, or other.
(conn *Conn, dbName string)
| 15 | CloseConn(c *Conn) error |
| 16 | // handle COM_INIT_DB command, you can check whether the dbName is valid, or other. |
| 17 | UseDB(conn *Conn, dbName string) error |
| 18 | // handle COM_QUERY command, like SELECT, INSERT, UPDATE, etc... |
| 19 | // If Result has a Resultset (SELECT, SHOW, etc...), we will send this as the response, otherwise, we will send Result |
| 20 | HandleQuery(conn *Conn, query string) (*Result, error) |