This commit is contained in:
Jan Prochazka
2021-09-06 18:42:01 +02:00
parent 3895c6bb47
commit f572c05a32
3 changed files with 5 additions and 4 deletions

View File

@@ -1,9 +1,10 @@
import { AlterProcessor } from './alter-processor';
import { TableInfo } from './dbinfo';
import { SqlDialect } from './dialect';
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;
dialect: SqlDialect;
@@ -15,6 +16,5 @@ export interface SqlDumper {
transform(type: TransformType, dumpExpr: () => void);
endCommand();
createTable(table: TableInfo);
allowIdentityInsert(table: NamedObjectInfo, allow: boolean);
}