mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 04:46:02 +00:00
grouping - work with datetimes
This commit is contained in:
3
packages/types/dumper.d.ts
vendored
3
packages/types/dumper.d.ts
vendored
@@ -1,6 +1,8 @@
|
||||
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 {
|
||||
s: string;
|
||||
dialect: SqlDialect;
|
||||
@@ -10,6 +12,7 @@ export interface SqlDumper {
|
||||
putCmd(format: string, ...args);
|
||||
putValue(value: string | number | Date);
|
||||
putCollection<T>(delimiter: string, collection: T[], lambda: (item: T) => void);
|
||||
transform(type: TransformType, dumpExpr: () => void);
|
||||
|
||||
endCommand();
|
||||
createTable(table: TableInfo);
|
||||
|
||||
Reference in New Issue
Block a user