This commit is contained in:
Nuno Cruces
2024-04-16 02:52:37 +01:00
parent 7bab8bb949
commit ec609ea131
4 changed files with 8 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ func (m *mmappedMemory) Reallocate(size uint64) []byte {
panic(err)
}
// Update commited memory.
// Update committed memory.
m.buf = m.buf[:new]
}
// Limit returned capacity because bytes beyond

View File

@@ -66,6 +66,11 @@ with `EXCLUSIVE` locking mode you should disable connection pooling by calling
You can use [`vfs.SupportsSharedMemory`](https://pkg.go.dev/github.com/ncruces/go-sqlite3/vfs#SupportsSharedMemory)
to check if your platform supports shared memory.
### Batch-Atomic Write
On 64-bit Linux, this module supports [batch-atomic writes](https://sqlite.org/cgi/src/technote/714)
on the F2FS filesystem.
### Build tags
The VFS can be customized with a few build tags:

View File

@@ -1,4 +1,4 @@
//go:build (amd64 || arm64) && !sqlite3_nosys
//go:build (amd64 || arm64 || riscv64) && !sqlite3_nosys
package vfs

View File

@@ -1,4 +1,4 @@
//go:build !linux || !(amd64 || arm64) || sqlite3_nosys
//go:build !linux || !(amd64 || arm64 || riscv64) || sqlite3_nosys
package vfs