v4.7.0
This release includes the new persister-libsql module, which provides a Persister for Turso's LibSQL database.
Use the Persister by passing in a reference to the LibSQL client to the createLibSQLPersister function; something like:
const client = createClient({url: 'file:my.db'});
const client = createClient({url: 'file:my.db'});
const persister = createLibSqlPersister(store, client, {
mode: 'tabular',
tables: {
load: {items: {tableId: 'items', rowIdColumnName: 'value'}},
save: {items: {tableName: 'items', rowIdColumnName: 'value'}},
},
});This is the first version of this functionality, so please provide feedback on how it works for you!