Commit b8c30a7
committed
Fix all remaining TODO items
namespace.py:
- create_collection: Persists config to KV storage
- get_collection: Loads from storage if not in cache
- list_collections: Scans storage prefix for all collections
- delete_collection: Removes config and all vectors from storage
database.py:
- stats(): Returns placeholder dict (accurate count needs FFI)
- checkpoint(): Safely calls FFI if available, no-op otherwise
Collections now persist across db close/reopen.1 parent 8b1bc3c commit b8c30a7
2 files changed
Lines changed: 63 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
1569 | | - | |
1570 | | - | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1571 | 1572 | | |
1572 | | - | |
| 1573 | + | |
1573 | 1574 | | |
1574 | 1575 | | |
1575 | 1576 | | |
| |||
1601 | 1602 | | |
1602 | 1603 | | |
1603 | 1604 | | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
1607 | 1618 | | |
1608 | 1619 | | |
1609 | 1620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
896 | | - | |
| 896 | + | |
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
901 | 909 | | |
902 | 910 | | |
903 | 911 | | |
| |||
919 | 927 | | |
920 | 928 | | |
921 | 929 | | |
922 | | - | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
923 | 939 | | |
924 | 940 | | |
925 | 941 | | |
| |||
928 | 944 | | |
929 | 945 | | |
930 | 946 | | |
931 | | - | |
932 | | - | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
933 | 957 | | |
934 | 958 | | |
935 | | - | |
936 | | - | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
937 | 963 | | |
938 | 964 | | |
939 | | - | |
940 | | - | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
941 | 978 | | |
942 | 979 | | |
943 | 980 | | |
| |||
0 commit comments