mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-26 01:06:27 +02:00
support UPDATE on auxiliary columns
This commit is contained in:
parent
a394c5f0dc
commit
5d9b923c59
4 changed files with 230 additions and 4 deletions
|
|
@ -73,7 +73,19 @@ def test_types(db, snapshot):
|
|||
|
||||
|
||||
def test_updates(db, snapshot):
|
||||
pass
|
||||
db.execute(
|
||||
"create virtual table v using vec0(vector float[1], +name text, chunk_size=8)"
|
||||
)
|
||||
db.executemany(
|
||||
"insert into v(vector, name) values (?, ?)",
|
||||
[("[1]", "alex"), ("[2]", "brian"), ("[3]", "craig")],
|
||||
)
|
||||
assert exec(db, "select rowid, * from v") == snapshot()
|
||||
assert vec0_shadow_table_contents(db, "v") == snapshot()
|
||||
|
||||
assert exec(db, "update v set name = 'ALEX' where rowid = 1") == snapshot()
|
||||
assert exec(db, "select rowid, * from v") == snapshot()
|
||||
assert vec0_shadow_table_contents(db, "v") == snapshot()
|
||||
|
||||
|
||||
def test_deletes(db, snapshot):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue