AST Module
This module provides types, type guards, helpers, and visitor utilities for working with SQL AST nodes.
Query builders are in src/builders.ts (WASM-backed).
src/builders.ts
Get the type tag (variant key) of an Expression at runtime.
const result = parse("SELECT 1");if (result.success) { getExprType(result.ast[0]); // => "select"} Copy
const result = parse("SELECT 1");if (result.success) { getExprType(result.ast[0]); // => "select"}
AST Module
This module provides types, type guards, helpers, and visitor utilities for working with SQL AST nodes.
Query builders are in
src/builders.ts(WASM-backed).