Changes:
- Swaps out `SingleConnectionDatabaseManager` to `DatabaseManager`
across the repo.
- Updates `backend-test-utils` to generate test plugin names prefixed
with db to satisfy plugin naming constraint, e.g. 0 becomes db0.
Signed-off-by: Minn Soe <contributions@minn.io>
Changes:
- Deprecates SingleConnectionManager and aliases to DatabaseManager.
- Simplifies database config typing in `config.d.ts`.
- Drops implementation specific assert in SingleConnectionManager test.
- Move database prefix reference and drop static property for default value.
Signed-off-by: Minn Soe <contributions@minn.io>
This commit introduces:
- a new backwards compatible database manager which allows the end-user
to set global and per plugin database configuration.
- an early iteration of a database connector interface.
- provides helper functions for each of the database connectors to
meet the new interface.
Signed-off-by: Minn Soe <contributions@minn.io>