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

Function resolveAdapterBaseOptions

packages/expo-db-sqlite-persistence/src/expo.ts:75–89  ·  view source on GitHub ↗
(
  options: ExpoSQLitePersistenceOptions,
)

Source from the content-addressed store, hash-verified

73}
74
75function resolveAdapterBaseOptions(
76 options: ExpoSQLitePersistenceOptions,
77): Omit<
78 SQLiteCoreAdapterOptions,
79 `driver` | `schemaVersion` | `schemaMismatchPolicy`
80> {
81 return {
82 appliedTxPruneMaxRows:
83 options.appliedTxPruneMaxRows ?? DEFAULT_APPLIED_TX_PRUNE_MAX_ROWS,
84 appliedTxPruneMaxAgeSeconds:
85 options.appliedTxPruneMaxAgeSeconds ??
86 DEFAULT_APPLIED_TX_PRUNE_MAX_AGE_SECONDS,
87 pullSinceReloadThreshold: options.pullSinceReloadThreshold,
88 }
89}
90
91export function createExpoSQLitePersistence(
92 options: ExpoSQLitePersistenceOptions,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected