interface DocumentConnector

Connector that produces connected DocumentAdapter instances.

Implement this to provide connection acquisition logic for your document store. Handles connection creation, pool management, and cleanup on end().

Type Parameters

TDoc
TQuery
TKey

Methods

Acquires a connected adapter.

end(): Promise<void>

Closes all connections and cleans up resources. After calling end(), the connector cannot be used to create new adapters.

Usage

import { type DocumentConnector } from ".";