Closed pdaether closed 8 years ago
At the moment only simple basics tests are implemented using mocha. To run the tests, you need to connect to a running MySQL server. A database or write permissions are not required.
Start the test suite with
DB_HOST=localhost DB_USER=user DB_PWD=pwd npm test
Looks good to me and test all pass, merging!
Can you push this to npm as well?
I have a little merging to do between master and the pool branch, which I'm doing now, but I will push as soon as I've finished
@naturalethic this has been pushed to npm now.
:+1: Thanks!
big ups!
Oops -- I just noticed there is no way to release connection. I see the incomplete tests in there for that as well. @pdaether you want to add that?
Yes, i can add this.
At the moment, i only use this module in an high traffic service without transaction and other stuff, so I only use the query
-method directly on the pool object.
Will add this asap.
See lukeb-uk/node-promise-mysql/pull/9