dbgate-types 5.0.8 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dbinfo.d.ts +7 -4
- package/package.json +1 -1
package/dbinfo.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface NamedObjectInfo {
|
|
2
2
|
pureName: string;
|
|
3
3
|
schemaName?: string;
|
|
4
|
+
contentHash?: string;
|
|
5
|
+
engine?: string;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
export interface ColumnReference {
|
|
@@ -31,7 +33,8 @@ export interface ForeignKeyInfo extends ColumnsConstraintInfo {
|
|
|
31
33
|
|
|
32
34
|
export interface IndexInfo extends ColumnsConstraintInfo {
|
|
33
35
|
isUnique: boolean;
|
|
34
|
-
indexType: 'normal' | 'clustered' | 'xml' | 'spatial' | 'fulltext';
|
|
36
|
+
// indexType: 'normal' | 'clustered' | 'xml' | 'spatial' | 'fulltext';
|
|
37
|
+
indexType: string;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
export interface UniqueInfo extends ColumnsConstraintInfo {}
|
|
@@ -43,8 +46,8 @@ export interface CheckInfo extends ConstraintInfo {
|
|
|
43
46
|
export interface ColumnInfo extends NamedObjectInfo {
|
|
44
47
|
pairingId?: string;
|
|
45
48
|
columnName: string;
|
|
46
|
-
notNull
|
|
47
|
-
autoIncrement
|
|
49
|
+
notNull?: boolean;
|
|
50
|
+
autoIncrement?: boolean;
|
|
48
51
|
dataType: string;
|
|
49
52
|
precision?: number;
|
|
50
53
|
scale?: number;
|
|
@@ -119,7 +122,7 @@ export interface DatabaseInfoObjects {
|
|
|
119
122
|
}
|
|
120
123
|
|
|
121
124
|
export interface DatabaseInfo extends DatabaseInfoObjects {
|
|
122
|
-
schemas
|
|
125
|
+
schemas?: SchemaInfo[];
|
|
123
126
|
engine?: string;
|
|
124
127
|
defaultSchema?: string;
|
|
125
128
|
}
|
package/package.json
CHANGED