Skip to content

basalt / audit-sqlite/src / sqliteAuditStore

Function: sqliteAuditStore() ​

> sqliteAuditStore(dbOrLocation?): SqliteAuditStores

Defined in: audit-sqlite/src/index.ts:285

Open a database (or reuse a DatabaseSync) and return the audit store wired to it, named to drop straight into auditPlugin:

ts
const a = sqliteAuditStore('./data/audit.db')
auditPlugin({ store: a.store })

Parameters ​

dbOrLocation? ​

string | DatabaseSync

Returns ​

SqliteAuditStores

Released under the MIT License.