UNPKG

@uwdata/mosaic-sql

Version:

SQL query construction and analysis.

40 lines 1.16 kB
import type { TableRefNode } from './table-ref.js'; import { ExprNode } from './node.js'; /** * Check if a value is a column reference node. * @param value The value to check. */ export declare function isColumnRef(value: unknown): value is ColumnRefNode; export declare class ColumnRefNode extends ExprNode { /** The table reference. */ readonly table?: TableRefNode; /** * Instantiate a column reference node. * @param type The AST node type. * @param table The table reference. */ constructor(type: string, table?: TableRefNode); /** * Returns the column name. */ get column(): string; /** * Generate a SQL query string for this node. */ toString(): string; } export declare class ColumnNameRefNode extends ColumnRefNode { /** The column name. */ readonly name: string; /** * Instantiate a column reference node. * @param name The column name. * @param table The table reference. */ constructor(name: string, table?: TableRefNode); /** * Returns the column name. */ get column(): string; } //# sourceMappingURL=column-ref.d.ts.map