UNPKG

@notross/mongo-singleton

Version:

A lightweight, zero-fuss way to get a single shared MongoDB connection across your Node.js codebase.

11 lines 529 B
import { MongoSingleton } from './mongo-singleton'; import { useClient } from './clients'; declare const mongoClient: MongoSingleton; declare const db: import("./types").GetDatabase; declare const getDb: import("./types").ConnectAndGetDb; declare const collection: import("./types").GetCollection; declare const configure: import("./types").SetConfig; export default MongoSingleton; export { collection, configure, db, getDb, mongoClient, MongoSingleton, useClient, }; export * from './types'; //# sourceMappingURL=index.d.ts.map