( options: ExpoSQLitePersistenceOptions, )
| 73 | } |
| 74 | |
| 75 | function 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 | |
| 91 | export function createExpoSQLitePersistence( |
| 92 | options: ExpoSQLitePersistenceOptions, |
no outgoing calls
no test coverage detected