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

    Function isExpressionValue

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

    • Check if a runtime value looks like an Expression.

      Expressions in the externally tagged format are single-key objects where the key is the variant name and the value is the inner data object.

      Important: The inner value must be a non-null, non-array plain object. Structs like From { expressions: Vec } serialize as { "expressions": [...] } — a single-key object with an array value. These must NOT be treated as Expressions, or the transformer will corrupt them.

      Parameters

      • value: unknown

      Returns value is Expression