@uwdata/mosaic-sql
Version:
SQL query construction and analysis.
21 lines • 553 B
JavaScript
import { SCALAR_SUBQUERY } from '../constants.js';
import { ExprNode } from './node.js';
export class ScalarSubqueryNode extends ExprNode {
/** The scalar subquery. */
subquery;
/**
* Instantiate a scalar subquery node.
* @param subquery The scalar subquery.
*/
constructor(subquery) {
super(SCALAR_SUBQUERY);
this.subquery = subquery;
}
/**
* Generate a SQL query string for this node.
*/
toString() {
return `(${this.subquery})`;
}
}
//# sourceMappingURL=subquery.js.map