prorm API Reference
    Preparing search index...

    Class DUCKDB_UNION

    Base class for all data types

    Hierarchy (View Summary)

    Index
    key: "UNION" = ...
    fields: Record<string, AbstractDataType>

    The named member alternatives of the union, in insertion order

    • Serialize a value for storage based on this DataType

      Parameters

      • value: unknown

        The value to serialize

      Returns unknown

      The serialized value

    • Get the SQL string representation based on the dialect DuckDB: native UNION(tag TYPE, ...) syntax Other dialects: falls back to JSON or TEXT

      Parameters

      • Optionaldialect: string

      Returns string