dbgate-types 5.4.3 → 5.4.5-alpha.3
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/alter-processor.d.ts +1 -0
- package/dbinfo.d.ts +7 -4
- package/dialect.d.ts +16 -0
- package/engines.d.ts +6 -0
- package/package.json +1 -1
package/alter-processor.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface AlterProcessor {
|
|
|
15
15
|
recreateTable(oldTable: TableInfo, newTable: TableInfo);
|
|
16
16
|
createSqlObject(obj: SqlObjectInfo);
|
|
17
17
|
dropSqlObject(obj: SqlObjectInfo);
|
|
18
|
+
setTableOption(table: TableInfo, optionName: string, optionValue: string);
|
|
18
19
|
fillPreloadedRows(
|
|
19
20
|
table: NamedObjectInfo,
|
|
20
21
|
oldRows: any[],
|
package/dbinfo.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface ColumnReference {
|
|
|
15
15
|
export interface ConstraintInfo extends NamedObjectInfo {
|
|
16
16
|
pairingId?: string;
|
|
17
17
|
constraintName?: string;
|
|
18
|
-
constraintType: 'primaryKey' | 'foreignKey' | 'index' | 'check' | 'unique';
|
|
18
|
+
constraintType: 'primaryKey' | 'foreignKey' | 'sortingKey' | 'index' | 'check' | 'unique';
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface ColumnsConstraintInfo extends ConstraintInfo {
|
|
@@ -49,6 +49,7 @@ export interface ColumnInfo extends NamedObjectInfo {
|
|
|
49
49
|
notNull?: boolean;
|
|
50
50
|
autoIncrement?: boolean;
|
|
51
51
|
dataType: string;
|
|
52
|
+
displayedDataType?: string;
|
|
52
53
|
precision?: number;
|
|
53
54
|
scale?: number;
|
|
54
55
|
length?: number;
|
|
@@ -61,7 +62,7 @@ export interface ColumnInfo extends NamedObjectInfo {
|
|
|
61
62
|
isUnsigned?: boolean;
|
|
62
63
|
isZerofill?: boolean;
|
|
63
64
|
options?: [];
|
|
64
|
-
canSelectMultipleOptions?: boolean
|
|
65
|
+
canSelectMultipleOptions?: boolean;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
export interface DatabaseObjectInfo extends NamedObjectInfo {
|
|
@@ -82,6 +83,7 @@ export interface SqlObjectInfo extends DatabaseObjectInfo {
|
|
|
82
83
|
export interface TableInfo extends DatabaseObjectInfo {
|
|
83
84
|
columns: ColumnInfo[];
|
|
84
85
|
primaryKey?: PrimaryKeyInfo;
|
|
86
|
+
sortingKey?: ColumnsConstraintInfo;
|
|
85
87
|
foreignKeys: ForeignKeyInfo[];
|
|
86
88
|
dependencies?: ForeignKeyInfo[];
|
|
87
89
|
indexes?: IndexInfo[];
|
|
@@ -91,6 +93,7 @@ export interface TableInfo extends DatabaseObjectInfo {
|
|
|
91
93
|
preloadedRowsKey?: string[];
|
|
92
94
|
preloadedRowsInsertOnly?: string[];
|
|
93
95
|
tableRowCount?: number | string;
|
|
96
|
+
tableEngine?: string;
|
|
94
97
|
__isDynamicStructure?: boolean;
|
|
95
98
|
}
|
|
96
99
|
|
|
@@ -102,10 +105,10 @@ export interface CollectionInfo extends DatabaseObjectInfo {
|
|
|
102
105
|
uniqueKey?: ColumnReference[];
|
|
103
106
|
|
|
104
107
|
// partition key columns
|
|
105
|
-
partitionKey?: ColumnReference[]
|
|
108
|
+
partitionKey?: ColumnReference[];
|
|
106
109
|
|
|
107
110
|
// unique key inside partition
|
|
108
|
-
clusterKey?: ColumnReference[];
|
|
111
|
+
clusterKey?: ColumnReference[];
|
|
109
112
|
}
|
|
110
113
|
|
|
111
114
|
export interface ViewInfo extends SqlObjectInfo {
|
package/dialect.d.ts
CHANGED
|
@@ -34,6 +34,15 @@ export interface SqlDialect {
|
|
|
34
34
|
createCheck?: boolean;
|
|
35
35
|
dropCheck?: boolean;
|
|
36
36
|
|
|
37
|
+
specificNullabilityImplementation?: boolean;
|
|
38
|
+
omitForeignKeys?: boolean;
|
|
39
|
+
omitUniqueConstraints?: boolean;
|
|
40
|
+
omitIndexes?: boolean;
|
|
41
|
+
sortingKeys?: boolean;
|
|
42
|
+
|
|
43
|
+
// syntax for create column: ALTER TABLE table ADD COLUMN column
|
|
44
|
+
createColumnWithColumnKeyword?: boolean;
|
|
45
|
+
|
|
37
46
|
dropReferencesWhenDropTable?: boolean;
|
|
38
47
|
requireFromDual?: boolean;
|
|
39
48
|
|
|
@@ -41,4 +50,11 @@ export interface SqlDialect {
|
|
|
41
50
|
|
|
42
51
|
// create sql-tree expression
|
|
43
52
|
createColumnViewExpression(columnName: string, dataType: string, source: { alias: string }, alias?: string): any;
|
|
53
|
+
|
|
54
|
+
getTableFormOptions(intent: 'newTableForm' | 'editTableForm' | 'sqlCreateTable' | 'sqlAlterTable'): {
|
|
55
|
+
name: string;
|
|
56
|
+
sqlFormatString: string;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
allowEmptyValue?: boolean;
|
|
59
|
+
}[];
|
|
44
60
|
}
|
package/engines.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ export interface EngineDriver extends FilterBehaviourProvider {
|
|
|
148
148
|
profilerChartAggregateFunction?: string;
|
|
149
149
|
profilerChartMeasures?: { label: string; field: string }[];
|
|
150
150
|
isElectronOnly?: boolean;
|
|
151
|
+
supportsTransactions?: boolean;
|
|
151
152
|
|
|
152
153
|
collectionSingularLabel?: string;
|
|
153
154
|
collectionPluralLabel?: string;
|
|
@@ -222,6 +223,11 @@ export interface EngineDriver extends FilterBehaviourProvider {
|
|
|
222
223
|
getCollectionExportQueryJson(collection: string, condition: any, sort?: CollectionSortDefinition): {};
|
|
223
224
|
getScriptTemplates(objectTypeField: keyof DatabaseInfo): { label: string; scriptTemplate: string }[];
|
|
224
225
|
getScriptTemplateContent(scriptTemplate: string, props: any): Promise<string>;
|
|
226
|
+
createSaveChangeSetScript(
|
|
227
|
+
changeSet: any,
|
|
228
|
+
dbinfo: DatabaseInfo,
|
|
229
|
+
defaultCreator: (changeSet: any, dbinfo: DatabaseInfo) => any
|
|
230
|
+
): any[];
|
|
225
231
|
|
|
226
232
|
analyserClass?: any;
|
|
227
233
|
dumperClass?: any;
|
package/package.json
CHANGED