Skip to main content
zerotal

Documentation


Documentation / @zerotal/orm / index / registerConnectionResolver

Function: registerConnectionResolver()

registerConnectionResolver(fn): void

Defined in: packages/orm/src/model/BaseModel.ts:161

Register a context-aware connection resolver (pass null to clear). Consulted by _resolveConn after explicit transactions and static connection named bindings, but before the default connection — so transactions and pinned connections still win.

Parameters

fn

ContextConnectionResolver | null

Returns

void