Commit 2968598
fix: initialize QMD store tables (content, documents, vectors) on database creation
When smriti opens a fresh database for the first time, it now properly
initializes QMD's store tables (content, documents, content_vectors) and
loads the sqlite-vec extension, in addition to memory tables.
This fixes the 'no such table: content_vectors' error that occurred when
running smriti status in fresh CI environments.
- Added initializeQmdStore() to setup all required QMD tables
- Content-addressable storage (content table)
- Document indexing (documents table)
- Vector embeddings support (content_vectors, vectors_vec tables)
- Proper sqlite-vec extension loading
Fixes Install Test failure on all platforms.
Co-Authored-By: Claude Haiku 4.5 <[email protected]>1 parent 192234f commit 2968598
1 file changed
Lines changed: 57 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
21 | 73 | | |
22 | 74 | | |
23 | 75 | | |
| |||
32 | 84 | | |
33 | 85 | | |
34 | 86 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
39 | 90 | | |
40 | 91 | | |
41 | 92 | | |
| |||
438 | 489 | | |
439 | 490 | | |
440 | 491 | | |
441 | | - | |
| 492 | + | |
| 493 | + | |
442 | 494 | | |
443 | 495 | | |
444 | 496 | | |
| |||
0 commit comments