Commit 2cea084
committed
feat(search): make --catalog required and use default_catalog for vector queries
- Add `default_catalog` field to `Database` struct (returned by API)
- Make `--catalog` required on `search` and `indexes create` commands
instead of falling back to the active database config
- Use `db.default_catalog` as the vector table prefix so the query
resolves against the correct catalog alias, not the resolved name1 parent 6204fb1 commit 2cea084
3 files changed
Lines changed: 9 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | | - | |
| 340 | + | |
| 341 | + | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
891 | 892 | | |
892 | 893 | | |
893 | 894 | | |
894 | | - | |
| 895 | + | |
895 | 896 | | |
896 | 897 | | |
897 | 898 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
| 712 | + | |
725 | 713 | | |
726 | 714 | | |
727 | 715 | | |
| |||
851 | 839 | | |
852 | 840 | | |
853 | 841 | | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
| 842 | + | |
865 | 843 | | |
866 | 844 | | |
867 | 845 | | |
| |||
871 | 849 | | |
872 | 850 | | |
873 | 851 | | |
874 | | - | |
| 852 | + | |
875 | 853 | | |
876 | 854 | | |
877 | 855 | | |
| |||
0 commit comments