You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the latest version (1.0.1), and in my minimal app that tries to get a connection I'm getting a generic error "Unable to acquire a connection". Currently, driverName is a property on the config object passed to the constructor and knex is not doing anything with that key so driverName is undefined when the super() call happens to Knex.Client.
I can get it to work if I do this:
const db = Knex(config);
db.client.driverName = "snowflake-sdk";
db.client.initializeDriver();
db.client.initializePool(config);
Am I missing something? This was changed in #36 which was recently merged. I have version 1.0.1 of knex and of the dialect.
The text was updated successfully, but these errors were encountered:
I just spent many many hours trying to figure out what was going on. This was exactly the issue. Any movement on this?
I ended up just calling the initialize methods as above when I initialize the db connection. I've got a few other changes in a fork that I haven't yet tried to get merged back in, once I've got some time I'll try to open a PR, I can probably fix this one too.
I'm trying to use the latest version (1.0.1), and in my minimal app that tries to get a connection I'm getting a generic error "Unable to acquire a connection". Currently,
driverName
is a property on the config object passed to the constructor and knex is not doing anything with that key so driverName is undefined when the super() call happens to Knex.Client.I can get it to work if I do this:
Am I missing something? This was changed in #36 which was recently merged. I have version 1.0.1 of knex and of the dialect.
The text was updated successfully, but these errors were encountered: