Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

parameterize construction of database connection #666

Open
kautukkundan opened this issue Sep 23, 2021 · 0 comments
Open

parameterize construction of database connection #666

kautukkundan opened this issue Sep 23, 2021 · 0 comments

Comments

@kautukkundan
Copy link
Collaborator

Problem

Currently database objects are simply created at a fixed location and passed on to all the consumers directly. This also creates overlapping of read operations especially in the case when multiple storage managers access the database in the same context (see client/integration.test.ts)

Solution

create a factory pattern for database connections which can be modified according to context

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant