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

    Type Alias Literal

    Literal:
        | { literal_type: "string"; value: string }
        | { literal_type: "number"; value: string }
        | { literal_type: "hex_string"; value: string }
        | { literal_type: "hex_number"; value: string }
        | { literal_type: "bit_string"; value: string }
        | { literal_type: "byte_string"; value: string }
        | { literal_type: "national_string"; value: string }
        | { literal_type: "date"; value: string }
        | { literal_type: "time"; value: string }
        | { literal_type: "timestamp"; value: string }
        | { literal_type: "datetime"; value: string }
        | { literal_type: "triple_quoted_string"; value: [string, string] }
        | { literal_type: "escape_string"; value: string }
        | { literal_type: "dollar_string"; value: string }
        | { literal_type: "raw_string"; value: string }

    Represent a SQL literal value.

    Numeric values are stored as their original text representation (not parsed to i64/f64) so that precision, trailing zeros, and hex notation are preserved across round-trips.

    Dialect-specific literal forms (triple-quoted strings, dollar-quoted strings, raw strings, etc.) each have a dedicated variant so that the generator can emit them with the correct syntax.