Skip to content

v4.7.0

Choose a tag to compare

@jamesgpearce jamesgpearce released this 12 Mar 01:48
· 1678 commits to main since this release

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!