Skip to main content
zerotal

Documentation


Documentation / @zerotal/orm / index / setConnectionResolver

Function: setConnectionResolver()

setConnectionResolver(fn): void

Defined in: packages/orm/src/db/resolver.ts:15

Register the callback used to look up the base connection from the container. Pass null to clear it. Set once by the DatabaseProvider at boot.

Parameters

fn

ConnectionResolver | null

Returns

void