/multitenant-any-sql

create a multitenant application, distribute your tenants across db instances, write code without having to add where clause all over the code

Primary LanguageJava

Abstract

This modules helps build a db for multitenant applications and builds a DataSource/Connection that removes the burden from programmers to have to deal with the tenantId in the code and pushes this reposnsibility to the entry point, may be a filter or authentication layer.

Schema Module

  • Schema module is used to generate tables/views based on xml
  • run com.analogyx.schemer.instance.DbScriptGenerator filename to generate the tables

Multitenant SQL DataSource implementation

API Overview