Skip to content

A small and simple MySQL database package for Go that includes support for automatic migrations

License

Notifications You must be signed in to change notification settings

jamiefdhurst/yendo-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yendo

License Build Status Latest Version

A small and simple MySQL database package for Go that includes support for automatic migrations.

Support

Yendo supports GOPATH and Go Module installations, from Go 1.13 up to Go 1.17.

Usage Example

A detailed example is present in the example/ folder.

Running Tests

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 ommitted
  • DB_USER - Username to connect as
  • DB_PASSWORD - Password to connect using
  • DB_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

About

A small and simple MySQL database package for Go that includes support for automatic migrations

Topics

Resources

License

Stars

Watchers

Forks

Languages