@secam/pgsql-ast-parser
Version:
Fork of pgsql-ast-parser Simple Postgres SQL parser/modifier for pg-mem
10 lines • 485 B
TypeScript
import { Interval } from '../syntax/ast';
type E = [keyof Interval, number];
type K = E | K[];
export declare function buildInterval(orig: string, vals: 'invalid' | K): Interval;
/** Returns a normalized copy of the given interval */
export declare function normalizeInterval(value: Interval): Interval;
/** Interval value to postgres string representation */
export declare function intervalToString(value: Interval): String;
export {};
//# sourceMappingURL=interval-builder.d.ts.map