Commit 08812ba
committed
fix(sqlite): register fts5 and rtree extensions explicitly
go-sqlite3 v0.35.0 moved the FTS5 and R*Tree/Geopoly extensions into
separate packages, so they are no longer part of the default build. This
broke schemas that use virtual tables, e.g.
CREATE VIRTUAL TABLE ft USING fts5(b);
which now fails with "no such module: fts5" when the SQLite analyzer
applies migrations.
Add an internal package that registers both extensions as auto
extensions, and import it wherever sqlc opens a SQLite connection, so
they are available on every connection as they were before the bump.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011B9zXEdnMfRMVmWQaJFXVS1 parent 8a62603 commit 08812ba
4 files changed
Lines changed: 25 additions & 0 deletions
File tree
- internal
- cmd
- engine/sqlite/analyzer
- sqlite3ext
- sqltest
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments