insert into tables with identity

This commit is contained in:
Jan Prochazka
2020-05-21 15:09:48 +02:00
parent 6df7743b4c
commit 68f5c88fb8
9 changed files with 87 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
import { TableInfo } from "./dbinfo";
import { SqlDialect } from "./dialect";
import { TableInfo } from './dbinfo';
import { SqlDialect } from './dialect';
export interface SqlDumper {
s: string;
@@ -9,12 +9,9 @@ export interface SqlDumper {
put(format: string, ...args);
putCmd(format: string, ...args);
putValue(value: string | number | Date);
putCollection<T>(
delimiter: string,
collection: T[],
lambda: (item: T) => void
);
putCollection<T>(delimiter: string, collection: T[], lambda: (item: T) => void);
endCommand();
createTable(table: TableInfo);
allowIdentityInsert(table: NamedObjectInfo, allow: boolean);
}