Skip to main content
Version: Next

withDirectStorageAccess

Callable

  • withDirectStorageAccess<T>(callback): Promise<T>

  • Runs callback outside of any storage transaction — the per-call-site escape hatch. Storage operations made inside it hit the real backend directly, are not rolled back, and operations that a transaction rejects (drop, stream-valued setValue, request queue internals, ...) are permitted.


    Parameters

    • callback: () => Awaitable<T>

      Returns Promise<T>