mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 14:09:13 +00:00
Go mvcc SQLite VFS
This package implements the EXPERIMENTAL "mvcc" in-memory SQLite VFS.
It has some benefits over the "memdb" VFS:
- panics do not corrupt a shared database,
- single-writer not blocked by readers,
- readers never block,
- instant snapshots.
mvcc.TestDB
is the preferred way to setup an in-memory database for testing
when you intend to leverage snapshots,
e.g. to setup many independent copies of a database,
such as one for each subtest.