Knex middleware to handle multiple tenants.
You can run your application for several clients and the database will be created in different schemas.
KnexTenanty( /* knex config object */, /* function to extract client-id from request object */ );
Setting up the middleware
Using knex to access the database