You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
modernc.org/sqlite bump + port #196 in-memory-conn fix +
ncruces attribution
modernc.org/sqlite bumps; golang.org/x/{crypto,sys,text} ride along
via `go mod tidy`. github.com/google/uuid and golang.org/x/text move
from indirect to direct in go.mod since ext/uuid and ext/unicode
import them at the leaf. modernc.org/libc stays pinned to the version
the new sqlite release carries — no independent bump.
conn.go ports the upstream #196 fix that regressed under #198's
sqlite3_is_interrupted check. A new (*conn).inMemory bool is set
once at open via Xsqlite3_db_filename(c.db, "main") — empty filename
means the database lives only in this connection. (*conn).usable()
short-circuits to true for in-memory conns so database/sql doesn't
discard a cancelled-QueryContext'd handle and lose the entire
database with it. File-backed conns keep the existing behaviour: an
interrupted one is reported unusable so the pool drops it, since the
data is safe on disk. conn_inmemory_test.go pins both branches
(in-memory survives interrupt, file-backed is dropped) — a port of
modernc's TestInMemoryDBSurvivesContextCancel.
0 commit comments