1 | import { Options } from 'sequelize';
|
2 | import { ModelCtor } from '../../model/model/model';
|
3 | export declare type ModelMatch = (filename: string, member: string) => boolean;
|
4 | export interface SequelizeOptions extends Options {
|
5 | /**
|
6 | * Path to models or actual models,
|
7 | * which should be loaded for sequelize instance
|
8 | */
|
9 | models?: string[] | ModelCtor[];
|
10 | /**
|
11 | * Path to models, which should be loaded
|
12 | * @deprecated
|
13 | */
|
14 | modelPaths?: string[];
|
15 | /**
|
16 | * Matches models by filename using a custom function.
|
17 | * @default (filename, member) => filename === member
|
18 | */
|
19 | modelMatch?: ModelMatch;
|
20 | /**
|
21 | * If true enables repository mode when true
|
22 | */
|
23 | repositoryMode?: boolean;
|
24 | /**
|
25 | * If true enables validate only mode
|
26 | */
|
27 | validateOnly?: boolean;
|
28 | }
|