-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17 +/- ##
======================================
- Coverage 75.49% 75% -0.5%
======================================
Files 5 5
Lines 151 152 +1
======================================
Hits 114 114
- Misses 37 38 +1
Continue to review full report at Codecov.
|
please add unit test code |
@sunfuze It keeps rejecting the credentials (looks like it doesn't take the username into account?). I am not very familiar with mysql but I am using Any ideas what may be wrong? |
https://github.com/tgriesser/knex/blob/master/src/dialects/mysql/index.js#L67 this is how knex create mysql connection. var connection = mysql.createConnection('mysql://user:pass@host/db?debug=true&charset=BIG5_CHINESE_CI&timezone=-0700'); this is example using connection string. so you should overwrite client.connection to connection string. |
@sunfuze So looks like
I think the best action here is to just remove the assertions and let the user specify whatever they want, which will fix everything . No need to assert anything since it will crash and tell the user what the error is. If you agree, I will close this PR and open another one removing assertions for config. |
In current implementation,
connectString
cannot be specified due to assertions.