# README
mysqlx
MySQL driver for Go's (golang) database/sql
package and MySQL X Protocol.
It requires Go 1.10+.
Status
Alpha quality. Do not use in production!
You are, however, is encouraged to try it in development and report bugs.
Data source format
mysqlx://username:password@host:port/database?_param=value&session_variable=value&…
All query parameters that are not starting with _
are used as session variables
and are set whenever a connection is opened.
Parameters starting with _
are listed below:
_auth-method
:PLAIN
orMYSQL41
(see AuthMethod type)
TODO
- Real TLS support.
- Binary strings.
- Large uint64.
- More tests for correct connection closing.
- More concurrent tests.
- Benchmarks.
- Support for https://github.com/gogo/protobuf (?)
- Charsets.
- Time zones.
- Real prepared statements.
- Named values.
- Expose notices and warnings (?).
# Functions
ParseDataSource returns Connector for given data source.
ReadMessage reads and returns one next protocol message, or low-level error.
# Constants
No description provided by the author
No description provided by the author
SeverityError indicates the current message sequence is aborted for the given error and the session is ready for more.
SeverityFatal indicates the client should not expect the server to continue handling any further messages and should close the connection.
# Variables
Driver implements database/sql/driver.Driver and database/sql/driver.DriverContext interfaces.