API reference › @evolu/common › local‑first/Storage › updateOwnerUsage
function updateOwnerUsage(
deps: SqliteDep,
): (
ownerIdBytes: Uint8Array<ArrayBufferLike> &
Brand<"Length16"> &
Brand<"IdBytes"> &
Brand<"OwnerIdBytes">,
storedBytes: number & 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:1619
Updates timestamp bounds in evolu_usage table.
Used by both relay and client to maintain firstTimestamp/lastTimestamp after processing messages.