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

Function resolvePersistence

packages/db-sqlite-persistence-core/src/persisted.ts:505–517  ·  view source on GitHub ↗
(
  persistence: PersistedCollectionPersistence,
)

Source from the content-addressed store, hash-verified

503}
504
505function resolvePersistence(
506 persistence: PersistedCollectionPersistence,
507): PersistedResolvedPersistence {
508 validatePersistenceAdapter(persistence.adapter)
509
510 const coordinator = persistence.coordinator ?? new SingleProcessCoordinator()
511 validatePersistedCollectionCoordinator(coordinator)
512
513 return {
514 ...persistence,
515 coordinator,
516 }
517}
518
519function resolvePersistenceForMode(
520 persistence: PersistedCollectionPersistence,

Callers 2

Tested by

no test coverage detected