41bafa57cc
- app.md - applog.go - frontend/package.json - frontend/package.json.md5 - frontend/vite.config.ts - go.mod - main.go - matrix_service.go - sqlite_driver.go - .wails_dev.log - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
21 lines
883 B
Go
21 lines
883 B
Go
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"
|
|
)
|