Aedes persistence, backed by the built-in Node.js SQLite module.
See aedes-persistence for the full API, and Aedes for usage.
npm i aedes aedes-persistence-sqlite --save
Creates a new instance of aedes-persistence-sqlite. The parameter is a SQLite
database filename, or an existing DatabaseSync instance from node:sqlite. As
standard with node:sqlite you can pass :memory: as filename to get an
in-memory only database.
Example:
const aedesPersistenceSqlite = require("aedes-persistence-sqlite");
// instantiate a persistence instance
aedesPersistenceSqlite('./mydb.sqlite');MIT