Skip to content

Multi tenant dynamic connections #14

Description

@Zyles

Is it possible to create multi tenant connections (1 DB per tenant) using this package?

I store my tenant connection details in a master database. So I need one master connection on boot.

When a request is made to the app, grabbing the tenant ID either from header or authenticated user and looking up the tenant connection details putting them in a map. Next request looks into the map for the connection details with tenant id as key.

But how would you create a connection dynamically on every request like this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions