Our application is designed to be able to connect to multiple databases simultaneously. It allows for single-tenancy databases with multi-tenancy programs. To achieve this, connections to the databases may be initiated when a request is received, then saved in a global pool for reuse.
The design of DBOS SDK prevents such a use case, as the connection is managed by a singleton.
I don't yet have a suggestion for a better API (I need to think about it more). The ability to customize connection management, instead of changing the current API, would cover that advanced use case.