package main // sqlite_driver.go registers the SQLite driver required by the mautrix crypto // store. mautrix-go's cryptohelper uses database/sql + the "sqlite3" driver // name. go-sqlite3 self-registers via init() with sync.Once internally, but we // keep the blank import here to make the dependency explicit. // // Per the project memory (feedback_agents_e2ee_unblock_pattern.md), if the // driver is somehow registered twice the panic shows up as // `sql: Register called twice for driver sqlite3`. The guard pattern lives in // go-sqlite3 itself, so a blank import is sufficient. import ( _ "github.com/mattn/go-sqlite3" // mautrix-go v0.28+ cryptohelper calls sql.Open("sqlite3-fk-wal", ...). // This variant is registered by go.mau.fi/util/dbutil/litestream init(). // Without it: panic "sql: unknown driver \"sqlite3-fk-wal\"". _ "go.mau.fi/util/dbutil/litestream" )