1 | import { SeederCollection, DeepPartial } from './common';
|
2 | import { SeederDatabaseConfig } from './database';
|
3 | import { CollectionInsertManyOptions, MongoClientOptions } from 'mongodb';
|
4 | import { EJSON } from 'bson';
|
5 |
|
6 |
|
7 |
|
8 | export interface SeederConfig {
|
9 | database: SeederDatabaseConfig;
|
10 | databaseReconnectTimeout: number;
|
11 | dropDatabase: boolean;
|
12 | dropCollections: boolean;
|
13 | removeAllDocuments: boolean;
|
14 | mongoClientOptions?: MongoClientOptions;
|
15 | collectionInsertManyOptions?: CollectionInsertManyOptions;
|
16 | }
|
17 |
|
18 |
|
19 |
|
20 | export declare const defaultSeederConfig: SeederConfig;
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | export declare const mergeSeederConfig: (partial?: DeepPartial<SeederConfig> | undefined, previous?: SeederConfig | undefined) => SeederConfig;
|
28 |
|
29 |
|
30 |
|
31 | export interface SeederCollectionReadingOptions {
|
32 | extensions: string[];
|
33 | ejsonParseOptions?: EJSON.Options;
|
34 | transformers: Array<(collection: SeederCollection) => SeederCollection>;
|
35 | }
|
36 |
|
37 |
|
38 |
|
39 | export declare const defaultCollectionReadingOptions: SeederCollectionReadingOptions;
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare const mergeCollectionReadingOptions: (partial?: DeepPartial<SeederCollectionReadingOptions> | undefined, previous?: SeederCollectionReadingOptions | undefined) => SeederCollectionReadingOptions;
|