Files
sqlite3/vfs/memdb/README.md

12 lines
494 B
Markdown
Raw Permalink Normal View History

2024-06-21 13:01:55 +01:00
# Go `memdb` SQLite VFS
2023-05-31 18:45:45 +01:00
2023-12-12 01:00:13 +00:00
This package implements the [`"memdb"`](https://sqlite.org/src/doc/tip/src/memdb.c)
2023-05-31 18:45:45 +01:00
SQLite VFS in pure Go.
It has some benefits over the C version:
- the memory backing the database needs not be contiguous,
- the database can grow/shrink incrementally without copying,
2025-10-01 11:00:13 +01:00
- reader-writer concurrency is slightly improved.
[`memdb.TestDB`](https://pkg.go.dev/github.com/ncruces/go-sqlite3/vfs/memdb#TestDB)
is the preferred way to setup an in-memory database for testing.