v4.8.0
This release includes the new persister-powersync module, which provides a Persister for PowerSync's SQLite database.
Much like the other SQLite persisters, use it by passing in a PowerSync instance to the createPowerSyncPersister function; something like:
const powerSync = usePowerSync();
const persister = createPowerSyncPersister(store, powerSync, {
mode: 'tabular',
tables: {
load: {items: {tableId: 'items', rowIdColumnName: 'value'}},
save: {items: {tableName: 'items', rowIdColumnName: 'value'}},
},
});
A huge thank you to Benedikt Mueller (@bndkt) for building out this functionality! And please provide feedback on how this new Persister works for you.