mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-10 13:52:58 +00:00
feat: refactor the query API and add query support to the python async API (#1113)
In addition, there are also a number of changes in nodejs to the docstrings of existing methods because this PR adds a jsdoc linter.
This commit is contained in:
@@ -14,6 +14,7 @@ use pyo3_asyncio::tokio::future_into_py;
|
||||
use crate::{
|
||||
error::PythonErrorExt,
|
||||
index::{Index, IndexConfig},
|
||||
query::Query,
|
||||
};
|
||||
|
||||
#[pyclass]
|
||||
@@ -179,4 +180,8 @@ impl Table {
|
||||
async move { inner.restore().await.infer_error() },
|
||||
)
|
||||
}
|
||||
|
||||
pub fn query(&self) -> Query {
|
||||
Query::new(self.inner_ref().unwrap().query())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user