MCPcopy Create free account
hub / github.com/TanStack/db / generateUuid

Function generateUuid

packages/db/src/local-storage.ts:152–154  ·  view source on GitHub ↗

* Generate a UUID for version tracking * @returns A unique identifier string for tracking data versions

()

Source from the content-addressed store, hash-verified

150 * @returns A unique identifier string for tracking data versions
151 */
152function generateUuid(): string {
153 return safeRandomUUID()
154}
155
156/**
157 * Encodes a key (string or number) into a storage-safe string format.

Callers 3

wrappedOnInsertFunction · 0.85
wrappedOnUpdateFunction · 0.85
acceptMutationsFunction · 0.85

Calls 1

safeRandomUUIDFunction · 0.90

Tested by

no test coverage detected