feathers
feathers copied to clipboard
feat: add tableOptions parameter for inheritance on knex adapter options to pass on knex builder
Add support on knex adapter to passe tableOptions on the Knex builder in order to support the option ONLY that discard the inheriting tables - For PostgreSQL only
Today the feathesjs-knex package was not able to pass the option:
{
only: true
}
Here is the knex doc: https://knexjs.org/guide/query-builder.html#common
I propose a new knex specific adapter option called: tableOptions to be used on the getOptions method of the service class.
this can be passed on the db method on the knex adapter and therfore to the
Model(name, tableOptions)