ProtectedconnectionProtectedidProtected StaticconnectionStaticdisconnectingProtected StaticinstancesStaticloggerProtected StaticpoolProtected StatictaskOptionalconnect?: booleanOptionalprovider?: stringStaticconnectOptionaloptions: ProviderOptionsOptionalconfig: StringAnyTypeStaticdisconnectStaticdisconnectStaticdisconnectStaticgetGet comprehensive connection statistics for monitoring taskQueue pooling effectiveness
StaticgetGets or creates a PostgreSQL connection based on taskQueue and database configuration. If a connection already exists for the same taskQueue + config, it will be reused. This optimization reduces connection overhead for PostgreSQL providers.
Optionalconnect?: booleanOptionalprovider?: stringStaticgetCheck taskQueue pooling effectiveness - returns metrics about connection reuse
StaticgetStaticisStaticlog
Abstract class for creating connections to different backend providers. All implementations should extend this class and implement the following steps:
Providertype in ./types/provider.ts.