Retrieves a PgManager instance from the registry.
The specific PgManager type to return, defaults to PgManager
The Storehouse registry containing registered managers
Optional
Optional name of the manager to retrieve. If omitted, retrieves the default manager
The requested PgManager instance
If the manager is not found in the registry
If the manager exists but is not an instance of PgManager
const pgManager = getManager(registry, 'postgres');const client = await pgManager.getConnection(); Copy
const pgManager = getManager(registry, 'postgres');const client = await pgManager.getConnection();
Retrieves a PgManager instance from the registry.