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
This makes it inconsistent with Knex. If it is too hard to pull in Knex' way of reading the config, an alternative would be to just document this shortcoming.
Workaround
For what it's worth, I get the values by running RegExp on the database URL, and it works:
connections, but connection object is always needed. There is plans to support this, but I'm not sure yet if I'm going to implement it to knex side or here.
There is feature (universal connection string format that is parsed to connection object) being planned in knex side, which would help implementing also this.
There is feature (universal connection string format that is parsed to connection object) being planned in knex side, which would help implementing also this.
It makes sense, it should probably be parked then, until it has been built.
The problem
In Knex, it is possible to define the connection as a single database URL, like:
This is not supported by the
databaseManagerFactory
, it requires that theconnection
property is on the object form, like:This makes it inconsistent with Knex. If it is too hard to pull in Knex' way of reading the config, an alternative would be to just document this shortcoming.
Workaround
For what it's worth, I get the values by running RegExp on the database URL, and it works:
The text was updated successfully, but these errors were encountered: