mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
remove vec_expo, impl drop vec0
This commit is contained in:
parent
1803a7d460
commit
feea3bfe43
2 changed files with 93 additions and 414 deletions
|
|
@ -746,6 +746,21 @@ def test_vec0_update_insert_errors2():
|
|||
db.set_authorizer(None)
|
||||
|
||||
|
||||
def test_vec0_drops():
|
||||
db = connect(EXT_PATH)
|
||||
db.execute("create virtual table t1 using vec0(aaa float[4], bbb float[4], chunk_size=8)")
|
||||
assert [row['name'] for row in execute_all(db, "select name from pragma_table_list where name like 't1%' order by 1")] == [
|
||||
't1',
|
||||
't1_chunks',
|
||||
't1_rowids',
|
||||
't1_vector_chunks00',
|
||||
't1_vector_chunks01',
|
||||
]
|
||||
db.execute("drop table t1")
|
||||
assert [row['name'] for row in execute_all(db, "select name from pragma_table_list where name like 't1%' order by 1")] == [
|
||||
|
||||
]
|
||||
|
||||
def test_vec0_update_deletes():
|
||||
db = connect(EXT_PATH)
|
||||
db.execute("create virtual table t1 using vec0(aaa float[4], chunk_size=8)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue