UNPKG

@uwdata/mosaic-sql

Version:

SQL query construction and analysis.

25 lines 650 B
import { IN_OPERATOR } from '../constants.js'; import { ExprNode } from './node.js'; export class InOpNode extends ExprNode { /** The input expression. */ expr; /** The value set. */ values; /** * Instantiate an in operator node. * @param expr The input expression. * @param values The value set. */ constructor(expr, values) { super(IN_OPERATOR); this.expr = expr; this.values = values; } /** * Generate a SQL query string for this node. */ toString() { return `(${this.expr} IN (${this.values.join(', ')}))`; } } //# sourceMappingURL=in-op.js.map