@uwdata/mosaic-sql
Version:
SQL query construction and analysis.
40 lines • 1.17 kB
TypeScript
import { ExprNode } from './node.js';
declare class AbstractUnaryOpNode extends ExprNode {
/** The operator type. */
readonly op: string;
/** The input expression. */
readonly expr: ExprNode;
/**
* Instantiate an abstract unary operator node.
* @param type The node type.
* @param op The operator type.
* @param expr The input expression.
*/
constructor(type: string, op: string, expr: ExprNode);
}
export declare class UnaryOpNode extends AbstractUnaryOpNode {
/**
* Instantiate a unary operator node.
* @param op The operator type.
* @param expr The input expression.
*/
constructor(op: string, expr: ExprNode);
/**
* Generate a SQL query string for this node.
*/
toString(): string;
}
export declare class UnaryPostfixOpNode extends AbstractUnaryOpNode {
/**
* Instantiate a unary operator node.
* @param op The operator type.
* @param expr The input expression.
*/
constructor(op: string, expr: ExprNode);
/**
* Generate a SQL query string for this node.
*/
toString(): string;
}
export {};
//# sourceMappingURL=unary-op.d.ts.map