Skip to content

v4.6.0

Choose a tag to compare

@jamesgpearce jamesgpearce released this 02 Jan 18:31
· 1737 commits to main since this release

This release includes the new persister-electric-sql module, which provides a Persister for ElectricSQL client databases.

Use this Persister by passing in a reference to the Electric client; something like:

const electric = await electrify(connection, schema, config);

const persister = createElectricSqlPersister(store, electric, {
  mode: 'tabular',
  tables: {
    load: {items: {tableId: 'items', rowIdColumnName: 'id'}},
    save: {items: {tableName: 'items', rowIdColumnName: 'id'}},
  },
});

This release is accompanied by a template project to get started quickly with this integration. Enjoy!