Open fatuhoku opened 11 years ago
@fatuhoku Hello !
Thank you for this report. Currently there is a "connection" Event emitted by the DBWrapper instance when the DB connection is resolved, with a "err" param. But you're right, it may be more "Nodish" to be able to provide a callback on the "connect()" method. I'm going to try to add this feature...
Node-DBI users are encouraged to write code like the following (in Coffeescript):
The two solutions to this issue are:
async
, and document this inREADME.md
:connect()
: i.e. change the interface toconnect(callback)