Closed mgutz closed 11 years ago
Okay, I'll do this thing in 24 hrs. ;)
Implemented as an optional config property
var config = { user: 'foo', password: 'secret' };
config.configureFn = function(client) {
client.setOptionSync(mysql.MYSQL_OPT_RECONNECT, 1);
};
Mapper.connect(config);
Ok. You 24hrs are much more fast than mine xD Thanks!
From #5
I was thinking of feature like:
It may be useful if one wants to control mysql connection (as example, sometimes I need to set MYSQL_OPT_RECONNECT flag). And with such thing we can avoid much code if we'd implement different client features. What do you think about such configure(fn) feature?