A small and simple MySQL database package for Go that includes support for automatic migrations.
Yendo supports GOPATH and Go Module installations, from Go 1.13 up to Go 1.17.
A detailed example is present in the example/
folder.
The tests require a MySQL connection available - the following environment variables are used to establish the connection:
DB_HOST
- Hostname or IP address, e.g.localhost
DB_PORT
- Port number, usually 3306 - this can be ommittedDB_USER
- Username to connect asDB_PASSWORD
- Password to connect usingDB_NAME
- Database name to use when testing
If you check out the code into the standard GOPATH-expected location (src/github.com/jamiefdhurst/yendo
), you can run
the tests immediately from within that location.
Once these conditions are met, the tests can be performed simply by running:
go test