mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 20:46:01 +00:00
18 lines
474 B
TypeScript
18 lines
474 B
TypeScript
import { TableInfo } from './dbinfo';
|
|
import { SqlDialect } from './dialect';
|
|
|
|
export interface SqlDumper {
|
|
s: string;
|
|
dialect: SqlDialect;
|
|
|
|
putRaw(s: string);
|
|
put(format: string, ...args);
|
|
putCmd(format: string, ...args);
|
|
putValue(value: string | number | Date);
|
|
putCollection<T>(delimiter: string, collection: T[], lambda: (item: T) => void);
|
|
|
|
endCommand();
|
|
createTable(table: TableInfo);
|
|
allowIdentityInsert(table: NamedObjectInfo, allow: boolean);
|
|
}
|