feat(nodejs): feature parity [4/N] - add 'name' to 'IndexConfig' for 'listIndices' (#1390)

depends on https://github.com/lancedb/lancedb/pull/1386

see actual diff here
https://github.com/universalmind303/lancedb/compare/create-table-args...universalmind303:list-indices-name
This commit is contained in:
Cory Grinstead
2024-06-21 15:45:02 -05:00
committed by GitHub
parent 5ca83fdc99
commit 3cd84c9375
5 changed files with 11 additions and 2 deletions

View File

@@ -340,6 +340,8 @@ impl Table {
#[napi(object)]
/// A description of an index currently configured on a column
pub struct IndexConfig {
/// The name of the index
pub name: String,
/// The type of the index
pub index_type: String,
/// The columns in the index
@@ -355,6 +357,7 @@ impl From<lancedb::index::IndexConfig> for IndexConfig {
Self {
index_type,
columns: value.columns,
name: value.name,
}
}
}