method CosmosAdapter.prototype.connect
CosmosAdapter.prototype.connect(): Promise<void>

Establishes the connection: resolves the client and proves the database is reachable with these credentials.

Nothing is retained until the connection is fully established, and the in-flight attempt is never cached past settlement — holding a rejected promise would turn one transient outage into a permanently unusable adapter.

Return Type

Promise<void>

Usage

import { CosmosAdapter } from "database-plugin/src/index.ts";