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

    Function decodeParam

    • Decodes one packed param back to something sql.exec() can bind.

      $b64 is bytes that were not valid UTF-8. $i is an integer outside the IEEE-754 safe range: it is bound as a decimal STRING, because SQLite's INTEGER affinity converts a well-formed integer string losslessly on the way in, while a JS number would already have lost the low bits before the binding saw it.

      Type Parameters

      • T

      Parameters

      • v: T

      Returns DecodedParam<T>