Create a AsyncTlsStorage backed by a SQLite file via better-sqlite3.
better-sqlite3
The adapter creates the tls_snapshots table automatically on the first call to init().
tls_snapshots
init()
Path to the SQLite database file, e.g. "./tls.db". Use ":memory:" for tests.
"./tls.db"
":memory:"
An AsyncTlsStorage instance. Call init() before any other method.
AsyncTlsStorage
const adapter = createSqliteAdapter('./tls.db');await adapter.init();await adapter.save({ deviceId: 'dev1', timestamp: new Date(), profile: {} }); Copy
const adapter = createSqliteAdapter('./tls.db');await adapter.init();await adapter.save({ deviceId: 'dev1', timestamp: new Date(), profile: {} });
Create a AsyncTlsStorage backed by a SQLite file via
better-sqlite3.The adapter creates the
tls_snapshotstable automatically on the first call toinit().