Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aleksi/mysqlx
MySQL driver for Go's (golang) database/sql package and MySQL X Protocol
https://github.com/aleksi/mysqlx
go golang mysql mysql-driver mysql-protocol mysql-x mysqlx
Last synced: 28 days ago
JSON representation
MySQL driver for Go's (golang) database/sql package and MySQL X Protocol
- Host: GitHub
- URL: https://github.com/aleksi/mysqlx
- Owner: AlekSi
- License: mpl-2.0
- Created: 2017-06-27T13:12:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T17:39:31.000Z (over 5 years ago)
- Last Synced: 2024-10-09T13:09:38.523Z (about 1 month ago)
- Topics: go, golang, mysql, mysql-driver, mysql-protocol, mysql-x, mysqlx
- Language: Go
- Homepage:
- Size: 204 KB
- Stars: 12
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# mysqlx
MySQL driver for Go's (golang) `database/sql` package and MySQL X Protocol.
[![GoDoc](https://godoc.org/github.com/AlekSi/mysqlx?status.svg)](https://godoc.org/github.com/AlekSi/mysqlx)
[![Build Status](https://travis-ci.org/AlekSi/mysqlx.svg?branch=master)](https://travis-ci.org/AlekSi/mysqlx)
[![Codecov](https://codecov.io/gh/AlekSi/mysqlx/branch/master/graph/badge.svg)](https://codecov.io/gh/AlekSi/mysqlx)
[![Go Report Card](https://goreportcard.com/badge/github.com/AlekSi/mysqlx)](https://goreportcard.com/report/github.com/AlekSi/mysqlx)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` or `MYSQL41` (see [AuthMethod type](https://godoc.org/github.com/AlekSi/mysqlx#AuthMethod))
* `_dial-timeout`## TODO
* Real TLS support.
* Binary strings.
* Large uint64.
* More tests for correct connection closing.
* More concurrent tests.
* Benchmarks.
* Charsets.
* Time zones.
* Real prepared statements.
* Named values.
* Expose notices and warnings (?).