drupflare/worker - v1.0.0
    Preparing search index...

    Function encodeLiteral

    • One column value as a SQL literal that replays back to the same bytes AND the same storage class.

      Parameters

      • type: string

        the value's own typeof(), not the column's declared type -- SQLite types values, not columns, so one column can hold all five

      • hex: string

        hex() of the value: the raw bytes for a blob, and the bytes of the exact text rendering for text and integer

      • real: number | null

        the column read directly, and ONLY ever a real; see the CASE guard in rowReader

      Returns string