API reference › @evolu/common › local‑first/Storage › getOwnerUsage
function getOwnerUsage(deps: SqliteDep): (
ownerIdBytes: Uint8Array<ArrayBufferLike> &
Brand<"Length16"> &
Brand<"IdBytes"> &
Brand<"OwnerIdBytes">,
initialTimestamp: Uint8Array<ArrayBufferLike> &
Brand<"Length16"> &
Brand<"TimestampBytes">,
) => Result<{
firstTimestamp: Uint8Array<ArrayBufferLike> &
Brand<"Length16"> &
Brand<"TimestampBytes">;
lastTimestamp: Uint8Array<ArrayBufferLike> &
Brand<"Length16"> &
Brand<"TimestampBytes">;
storedBytes: (number & Brand<"Int"> & Brand<"NonNegative">) | null;
}>;
Defined in: packages/common/src/local-first/Storage.ts:1574
Retrieves usage information for an owner from the evolu_usage table.