v4.6.0
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!