mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 16:53:58 +00:00
ts fixes
This commit is contained in:
@@ -387,6 +387,7 @@ export class SqlDumper implements AlterProcessor {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
changeConstraint(oldConstraint: ConstraintInfo, newConstraint: ConstraintInfo) {}
|
||||||
dropForeignKey(fk: ForeignKeyInfo) {
|
dropForeignKey(fk: ForeignKeyInfo) {
|
||||||
if (this.dialect.explicitDropConstraint) {
|
if (this.dialect.explicitDropConstraint) {
|
||||||
this.putCmd('^alter ^table %f ^drop ^foreign ^key %i', fk, fk.constraintName);
|
this.putCmd('^alter ^table %f ^drop ^foreign ^key %i', fk, fk.constraintName);
|
||||||
|
|||||||
4
packages/types/dumper.d.ts
vendored
4
packages/types/dumper.d.ts
vendored
@@ -1,9 +1,10 @@
|
|||||||
|
import { AlterProcessor } from './alter-processor';
|
||||||
import { TableInfo } from './dbinfo';
|
import { TableInfo } from './dbinfo';
|
||||||
import { SqlDialect } from './dialect';
|
import { SqlDialect } from './dialect';
|
||||||
|
|
||||||
export type TransformType = 'GROUP:YEAR' | 'GROUP:MONTH' | 'GROUP:DAY' | 'YEAR' | 'MONTH' | 'DAY'; // | 'GROUP:HOUR' | 'GROUP:MINUTE';
|
export type TransformType = 'GROUP:YEAR' | 'GROUP:MONTH' | 'GROUP:DAY' | 'YEAR' | 'MONTH' | 'DAY'; // | 'GROUP:HOUR' | 'GROUP:MINUTE';
|
||||||
|
|
||||||
export interface SqlDumper {
|
export interface SqlDumper extends AlterProcessor {
|
||||||
s: string;
|
s: string;
|
||||||
dialect: SqlDialect;
|
dialect: SqlDialect;
|
||||||
|
|
||||||
@@ -15,6 +16,5 @@ export interface SqlDumper {
|
|||||||
transform(type: TransformType, dumpExpr: () => void);
|
transform(type: TransformType, dumpExpr: () => void);
|
||||||
|
|
||||||
endCommand();
|
endCommand();
|
||||||
createTable(table: TableInfo);
|
|
||||||
allowIdentityInsert(table: NamedObjectInfo, allow: boolean);
|
allowIdentityInsert(table: NamedObjectInfo, allow: boolean);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user