API reference@evolu/commonlocal‑first/Storage › updateOwnerUsage

function updateOwnerUsage(
  deps: SqliteDep,
): (
  ownerIdBytes: Uint8Array<ArrayBufferLike> &
    Brand<"Length16"> &
    Brand<"IdBytes"> &
    Brand<"OwnerIdBytes">,
  storedBytes: number &
    Brand<"NonNaN"> &
    Brand<"Finite"> &
    Brand<"Int"> &
    Brand<"NonNegative"> &
    Brand<"Positive">,
  firstTimestamp: Uint8Array<ArrayBufferLike> &
    Brand<"Length16"> &
    Brand<"TimestampBytes">,
  lastTimestamp: Uint8Array<ArrayBufferLike> &
    Brand<"Length16"> &
    Brand<"TimestampBytes">,
) => void;

Defined in: packages/common/src/local-first/Storage.ts:1620

Updates timestamp bounds in evolu_usage table.

Used by both relay and client to maintain firstTimestamp/lastTimestamp after processing messages.