UNPKG

koa-mongo-router

Version:
8 lines (7 loc) 604 B
import { Collection, Db, MongoClient, MongoClientOptions } from 'mongodb'; export declare function setMongoClientOptions(options?: Partial<MongoClientOptions>): void; export declare function resetMongoClient(): void; export declare function getMongoClient(createConnection?: boolean, options?: Partial<MongoClientOptions>): Promise<MongoClient>; export declare function getDatabase(databaseName: string): Promise<Db>; export declare function getDatabaseCollection(databaseName: string, collectionName: string): Promise<Collection>; export declare function closeDatabases(force?: boolean): Promise<void>;