Closed mytototo closed 5 years ago
dialect
and client
configuration attributes are aliases for the same thing. So deprecating dialect
will not affect to anything.
Support for third party dialects will work as described in here: https://github.com/tgriesser/knex/blob/master/CONTRIBUTING.md#i-would-like-to-add-support-for-new-dialect-to-knex-is-it-possible
Got it, I didn't know this way of using existing dialect. Thank you!
Hi,
I know you want to deprecate
this.dialect
so we can useconfig.client
instead. Here is the warning:Looks logical.
However,
new Dialect()
is still useful when we want to use node modules that don't allow dynamic requiring, such aspkg
.Dynamic
require
is at https://github.com/tgriesser/knex/blob/master/lib/knex.js#L43Instead of passing a
client
string, I'd like to keep doing this:This way, I can continue using third-party module that don't support dynamic requiring.
What do you think ? Thank you.