Skip to content

[Multi-Tenant] getOrCreateConnection method in Database Connections Service #3105

@njlie

Description

@njlie

Parent Issue: #2893

Description

The Database Connection Service should extend a function to retrieve a database connection from its internal data structure, given a tenant id. If one isn't found, it should try to create a new connection using Knex and the databaseUrl that is associated with the tenant.

Prerequisites:

#3104

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg: backendChanges in the backend package.

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions