[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/orm](../../README) / [index](../README) / \_getDbConnectionOverride

# Function: \_getDbConnectionOverride()

> **\_getDbConnectionOverride**(): [`SQLInstance`](../interfaces/SQLInstance) \| `null`

Defined in: [packages/orm/src/db/DB.ts:38](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/orm/src/db/DB.ts#L38)

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`](../interfaces/SQLInstance) \| `null`
