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

    Function makeExpr

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

    • Create an Expression from a variant key and inner data.

      Parameters

      • type: string
      • data: unknown

      Returns Expression

      const expr = makeExpr('literal', { literal_type: 'number', value: '42' });