#100
Requirements
- Use a single Knex client per service
Tasks
Reference
Max Connections Scaling
Can use Knex .withSchema() to set the Tenant DB.
Knex.queryBuilder().withSchema(tenantDB).select() //...
Knex.schema.withSchema(tenantDB).createTable(cb)
In Objection it should be possible to do this when creating a custom Model. See Vincit/objection.js#85 (comment)