Skip to content

v4.8.0

Compare
Choose a tag to compare
@jamesgpearce jamesgpearce released this 04 Apr 20:17
· 1020 commits to main since this release

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.