UNPKG

@uwdata/mosaic-sql

Version:

SQL query construction and analysis.

25 lines 673 B
import { COLLATE } from '../constants.js'; import { ExprNode } from './node.js'; export class CollateNode extends ExprNode { /** The expression to collate. */ expr; /** The collation type. */ collation; /** * Instantiate a collate node. * @param expr The expression to collate. * @param collation The collation type. */ constructor(expr, collation) { super(COLLATE); this.expr = expr; this.collation = collation; } /** * Generate a SQL query string for this node. */ toString() { return `${this.expr} ${COLLATE} ${this.collation}`; } } //# sourceMappingURL=collate.js.map