Documentation / @zerotal/orm / index / _getDbConnectionOverride
Function: _getDbConnectionOverride()
_getDbConnectionOverride():
SQLInstance|null
Defined in: packages/orm/src/db/DB.ts:38
Test helper: read the current injected override, or null when none is set.
Distinct from _getDbConnection, which falls back to the container: a helper that installs its own connection needs to restore the override slot exactly as it found it, and cannot tell an absent override from a container-resolved connection otherwise.
Returns
SQLInstance | null