Skip to content
Commit adca4cec authored by Kevin Lyda's avatar Kevin Lyda 💬 Committed by Niall Sheridan
Browse files

Db test config (#43)

* Allow tests to specify mysql connection info.

User can set MYSQL_TEST_USER, MYSQL_TEST_PASS and MYSQL_TEST_HOST
environment variables for test environments that need that.

* Changes from testing.

Need to set both time fields as '0000-00-00' depends on a feature
deprecated in MySQL 5.7.4.

Go lint wanted snake case for my sql_config var. sqlConfig it is.

* Go go idioms.

Based on feedback from Niall, a cleaner way to do this in Go.
parent 94ae8fd8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment