feat: support for deletion (#219)

Also upgrades Arrow and Lance.
This commit is contained in:
Will Jones
2023-06-23 18:09:07 -07:00
committed by GitHub
parent 1a9a392e20
commit ad48242ffb
11 changed files with 200 additions and 134 deletions

View File

@@ -147,6 +147,17 @@ describe('LanceDB client', function () {
await table.overwrite(dataOver)
assert.equal(await table.countRows(), 2)
})
it('can delete records from a table', async function () {
const uri = await createTestDB()
const con = await lancedb.connect(uri)
const table = await con.openTable('vectors')
assert.equal(await table.countRows(), 2)
await table.delete('price = 10')
assert.equal(await table.countRows(), 1)
})
})
describe('when creating a vector index', function () {