Categorygithub.com/aleksi/mysqlx
modulepackage
0.1.0
Repository: https://github.com/aleksi/mysqlx.git
Documentation: pkg.go.dev

# README

mysqlx

MySQL driver for Go's (golang) database/sql package and MySQL X Protocol.

GoDoc Build Status Codecov Go Report Card

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:

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.

# Structs

Connector implements database/sql/driver.Connector interface.
Error represents MySQL X Protocol error message.

# Type aliases

No description provided by the author
Severity represents Error severity level.