1 | import type { UmzugStorage } from './contract';
|
2 | type AnyObject = Record<string, any>;
|
3 | export type MongoDBConnectionOptions = {
|
4 | |
5 |
|
6 |
|
7 | readonly connection: AnyObject;
|
8 | |
9 |
|
10 |
|
11 |
|
12 |
|
13 | readonly collectionName?: string;
|
14 | };
|
15 | export type MongoDBCollectionOptions = {
|
16 | |
17 |
|
18 |
|
19 | readonly collection: AnyObject;
|
20 | };
|
21 | export type MongoDBStorageConstructorOptions = MongoDBConnectionOptions | MongoDBCollectionOptions;
|
22 | export declare class MongoDBStorage implements UmzugStorage {
|
23 | readonly collection: AnyObject;
|
24 | readonly connection: any;
|
25 | readonly collectionName: string;
|
26 | constructor(options: MongoDBStorageConstructorOptions);
|
27 | logMigration({ name: migrationName }: {
|
28 | name: string;
|
29 | }): Promise<void>;
|
30 | unlogMigration({ name: migrationName }: {
|
31 | name: string;
|
32 | }): Promise<void>;
|
33 | executed(): Promise<string[]>;
|
34 | }
|
35 | export {};
|