@eggjs/dal-runtime
Version:
tegg dal decorator
20 lines (19 loc) • 602 B
TypeScript
import { Template } from 'nunjucks';
import { SqlType } from '@eggjs/tegg-types';
import type { SqlMap } from '@eggjs/tegg-types';
export interface SqlGenerator {
type: SqlType;
template: Template;
raw: string;
}
export declare class TableSqlMap {
#private;
readonly name: string;
private readonly map;
private readonly blocks;
private readonly sqlGenerator;
constructor(name: string, map: Record<string, SqlMap>);
generate(name: string, data: object, timezone: string): string;
getType(name: string): SqlType;
getTemplateString(name: string): string;
}