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

Function createCollectionPersistence

packages/expo-db-sqlite-persistence/src/expo.ts:130–136  ·  view source on GitHub ↗
(
    mode: PersistedCollectionMode,
    schemaVersion: number | undefined,
  )

Source from the content-addressed store, hash-verified

128 }
129
130 const createCollectionPersistence = (
131 mode: PersistedCollectionMode,
132 schemaVersion: number | undefined,
133 ): PersistedCollectionPersistence => ({
134 adapter: getAdapterForCollection(mode, schemaVersion),
135 coordinator: resolvedCoordinator,
136 })
137
138 const defaultPersistence = createCollectionPersistence(
139 `sync-absent`,

Callers 1

Calls 1

getAdapterForCollectionFunction · 0.70

Tested by

no test coverage detected