go-mysql-server is an extensible MySQL server implementation in Go.
The import path for the package is gopkg.in/src-d/go-mysql-server.v0
.
To install it, run:
go get gopkg.in/src-d/go-mysql-server.v0
We are continuously adding more functionality to go-mysql-server. We support a subset of what is supported in MySQL, currently including:
Supported | |
---|---|
Comparison expressions | !=, ==, >, <, >=,<=, BETWEEN |
Null check expressions | IS NULL, IS NOT NULL |
Grouping expressions | COUNT, MIN, MAX ,AVG |
Standard expressions | ALIAS, LITERAL, STAR (*) |
Statements | CROSS JOIN, INNER JOIN, DESCRIBE, FILTER (WHERE), GROUP BY, LIMIT, SELECT, SHOW TABLES, SORT, DISTINCT |
Functions | SUBSTRING |
Time functions | YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, DAYOFYEAR |
IS_BINARY(blob)
: returns whether a BLOB is a binary file or not
go-mysql-server is licensed under the MIT License.