chore: validate table name (#1146)

Closes #1129
This commit is contained in:
Lei Xu
2024-03-21 14:46:13 -07:00
committed by Weston Pace
parent d32dc84653
commit 473ef7e426
12 changed files with 106 additions and 9 deletions

View File

@@ -42,6 +42,7 @@ pub fn _lancedb(_py: Python, m: &PyModule) -> PyResult<()> {
m.add_class::<VectorQuery>()?;
m.add_class::<RecordBatchStream>()?;
m.add_function(wrap_pyfunction!(connect, m)?)?;
m.add_function(wrap_pyfunction!(util::validate_table_name, m)?)?;
m.add("__version__", env!("CARGO_PKG_VERSION"))?;
Ok(())
}