IMPORTANT
This is one of the first versions of this package to use
wasm2go.
wasm2gois a recent project, so you may prefer to stick to previous versions, if you value stability.
wasm2gohad a bug affecting the followingGOARCHs:alpha,arm,mipsle,mips64le,riscv,riscv64,sh. If you have users using these CPUs, please upgrade SQLite tov0.33.2.Your feedback on this change is very appreciated. Please read and comment on the discussion.
This is a breaking change, but in most cases, upgrading is as simple as removing this import from your code:
import _ "github.com/ncruces/go-sqlite3/embed"If you were configuring how much memory you gave your SQLite connections, you need to:
// Stop doing this:
sqlite3.RuntimeConfig = wazero.NewRuntimeConfig().WithMemoryLimitPages(512) // 32 MB
// And use this context to open your connections:
sqliteCtx := sqlite3.WithMaxMemory(parentCtx, 32*1024*1024) // 32 MBFull Changelog: https://github.com/ncruces/go-sqlite3/compare/v0.32.0...v0.33.2