BSD WAL support. (#90)

Uses in-memory locks.
Also supports illumos.
This commit is contained in:
Nuno Cruces
2024-06-05 00:43:49 +01:00
committed by GitHub
parent d78a53a789
commit e9ed4c103d
16 changed files with 314 additions and 32 deletions

View File

@@ -1,6 +1,7 @@
package testcfg
import (
"math/bits"
"os"
"path/filepath"
@@ -9,6 +10,10 @@ import (
)
func init() {
if bits.UintSize < 64 {
return
}
sqlite3.RuntimeConfig = wazero.NewRuntimeConfig().
WithMemoryCapacityFromMax(true).
WithMemoryLimitPages(1024)

View File

@@ -1,4 +1,4 @@
//go:build (darwin || linux) && (amd64 || arm64 || riscv64) && !(sqlite3_noshm || sqlite3_nosys)
//go:build unix && (amd64 || arm64 || riscv64) && !(sqlite3_noshm || sqlite3_nosys)
package util

View File

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