Skip to content

Commit fd14937

Browse files
author
kukoo
committed
new definition
1 parent 84a0538 commit fd14937

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import {Options} from 'sequelize';
2+
3+
/**
4+
* This class is for deprecated "name" property.
5+
* For cPlease
6+
*/
7+
export interface ISequelizeDbNameConfig extends Options {
8+
9+
/**
10+
* Name of database
11+
* @TODO: name is deprecated. Use database instead.
12+
*/
13+
name: string;
14+
15+
/**
16+
* Username of database
17+
*/
18+
username: string;
19+
20+
/**
21+
* Password for database user
22+
*/
23+
password: string;
24+
25+
/**
26+
* Path to models, which should be loaded
27+
*/
28+
modelPaths?: string[];
29+
30+
/**
31+
* Makes it possible to use sequelize for validation only
32+
* if set to true. For this configuration it is always false.
33+
* See ISequelizeValidationOnlyConfig interface
34+
*/
35+
validateOnly?: false;
36+
}

lib/interfaces/ISequelizeUriConfig.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import {Options} from 'sequelize';
2+
3+
export interface ISequelizeConfig extends Options {
4+
5+
/**
6+
* Name of database
7+
*/
8+
name: string;
9+
10+
/**
11+
* Username of database
12+
*/
13+
username: string;
14+
15+
/**
16+
* Password for database user
17+
*/
18+
password: string;
19+
20+
/**
21+
* Path to models, which should be loaded
22+
*/
23+
modelPaths?: string[];
24+
25+
/**
26+
* Makes it possible to use sequelize for validation only
27+
* if set to true. For this configuration it is always false.
28+
* See ISequelizeValidationOnlyConfig interface
29+
*/
30+
validateOnly?: false;
31+
}

lib/types/SequelizeConfig.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)