dbgate-types 6.2.0 → 6.2.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/dialect.d.ts CHANGED
@@ -13,8 +13,10 @@ export interface SqlDialect {
13
13
  fallbackDataType?: string;
14
14
  explicitDropConstraint?: boolean;
15
15
  anonymousPrimaryKey?: boolean;
16
+ anonymousForeignKey?: boolean;
16
17
  defaultSchemaName?: string;
17
18
  enableConstraintsPerTable?: boolean;
19
+ enableAllForeignKeys?: boolean;
18
20
  requireStandaloneSelectForScopeIdentity?: boolean;
19
21
  allowMultipleValuesInsert?: boolean;
20
22
 
@@ -63,6 +65,7 @@ export interface SqlDialect {
63
65
  requireFromDual?: boolean;
64
66
  userDatabaseNamePrefix?: string; // c## in Oracle
65
67
  upperCaseAllDbObjectNames?: boolean;
68
+ defaultValueBeforeNullability?: boolean;
66
69
 
67
70
  predefinedDataTypes: string[];
68
71
 
package/dumper.d.ts CHANGED
@@ -24,4 +24,5 @@ export interface SqlDumper extends AlterProcessor {
24
24
  truncateTable(table: NamedObjectInfo);
25
25
  beginTransaction();
26
26
  commitTransaction();
27
+ rollbackTransaction();
27
28
  }
package/engines.d.ts CHANGED
@@ -40,6 +40,7 @@ export interface WriteTableOptions {
40
40
  truncate?: boolean;
41
41
  createIfNotExists?: boolean;
42
42
  commitAfterInsert?: boolean;
43
+ targetTableStructure?: TableInfo;
43
44
  }
44
45
 
45
46
  export interface EngineAuthType {
@@ -161,8 +162,9 @@ export interface EngineDriver<TClient = any> extends FilterBehaviourProvider {
161
162
  profilerTimestampFunction?: string;
162
163
  profilerChartAggregateFunction?: string;
163
164
  profilerChartMeasures?: { label: string; field: string }[];
164
- isElectronOnly?: boolean;
165
+ // isElectronOnly?: boolean;
165
166
  supportsTransactions?: boolean;
167
+ implicitTransactions?: boolean; // transaction is started with first SQL command, no BEGIN TRANSACTION is needed
166
168
 
167
169
  collectionSingularLabel?: string;
168
170
  collectionPluralLabel?: string;
@@ -257,6 +259,8 @@ export interface EngineDriver<TClient = any> extends FilterBehaviourProvider {
257
259
  ): any[];
258
260
  // adapts table info from different source (import, other database) to be suitable for this database
259
261
  adaptTableInfo(table: TableInfo): TableInfo;
262
+ // simple data type adapter
263
+ adaptDataType(dataType: string): string;
260
264
  listSchemas(dbhan: DatabaseHandle<TClient>): SchemaInfo[];
261
265
 
262
266
  analyserClass?: any;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "6.2.0",
2
+ "version": "6.2.1",
3
3
  "name": "dbgate-types",
4
4
  "homepage": "https://dbgate.org/",
5
5
  "repository": {
package/test-engines.d.ts CHANGED
@@ -39,6 +39,7 @@ export type TestEngineInfo = {
39
39
  skipNonPkRename?: boolean;
40
40
  skipPkDrop?: boolean;
41
41
  skipOrderBy?: boolean;
42
+ skipImportModel?: boolean;
42
43
 
43
44
  forceSortResults?: boolean;
44
45
  forceSortStructureColumns?: boolean;