interface IMongoClient
Since 0.1.0

A structural subset of the driver MongoClient — the members the adapter drives.

Methods

connect(): Promise<void>

Opens the connection.

close(): Promise<void>

Closes the connection.

db(name: string): IMongoDatabase

Returns the database named name.

Starts a new session.

Usage

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