sqliteStore
sqliteStore(
options):Store
Defined in: store/sqlite.ts:86
Creates a SQLite store. The schema is created right away (synchronously) if missing, so opening an existing database again is safe. Every write takes the write lock before reading the last seq, so concurrent writers (in this process or another one) cannot both append the same seq. Retrying a batch that is already stored with identical data succeeds without writing. Writes made in the same turn of the event loop are committed together (group commit: one fsync for all of them) and each resolves after that commit; each table's batch is still all or nothing, and one table's conflict does not fail another's append.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Throws
Section titled “Throws”TypeError for an invalid tablePrefix, or an Error if the database holds a
newer schema than this version of Shoehive understands.
