You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQLite's session extension allows you to record changes and apply them to other databases - perfect for synchronization, replication, or undo/redo functionality.
@@ -371,7 +371,7 @@ function syncDatabases(primaryPath, replicaPath) {
371
371
}
372
372
```
373
373
374
-
### Change Tracking Example
374
+
### Change tracking example
375
375
376
376
Sessions track changes that can be applied to other databases for synchronization:
377
377
@@ -412,9 +412,9 @@ targetDb.close();
412
412
413
413
> **Note:** The `changesetInvert()` function for creating inverse changesets is not currently exposed in the JavaScript API. For undo/redo functionality, consider storing the original data before modifications or using SQLite triggers to maintain a history table.
414
414
415
-
## Performance Optimization
415
+
## Performance optimization
416
416
417
-
### URI Configuration for Performance
417
+
### URI configuration for performance
418
418
419
419
```javascript
420
420
// High-performance read-only configuration
@@ -430,7 +430,7 @@ const db = new DatabaseSync("large.db");
0 commit comments