Polyglot SQL API Documentation - v0.1.0
    Preparing search index...

    Function getExprData

    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).

    • Get the inner data of an Expression at runtime.

      Parameters

      Returns Record<string, unknown>

      const expr = parse("SELECT 1")[0];
      const selectData = getExprData(expr);
      // selectData.expressions, selectData.from, etc.