UNPKG

@uwdata/mosaic-sql

Version:

SQL query construction and analysis.

25 lines 641 B
import { INTERVAL } from '../constants.js'; import { ExprNode } from './node.js'; export class IntervalNode extends ExprNode { /** The interval name. */ name; /** The interval steps. */ steps; /** * Instantiate an interval node. * @param name The interval name. * @param steps The interval steps. */ constructor(name, steps = 1) { super(INTERVAL); this.name = name; this.steps = steps; } /** * Generate a SQL query string for this node. */ toString() { return `INTERVAL ${this.steps} ${this.name}`; } } //# sourceMappingURL=interval.js.map