feat: expose table uri (#2922)

* Expose `table.uri` property for all tables, including remote tables
* Fix bug in path calculation on windows file systems
This commit is contained in:
Ryan Green
2026-01-20 19:56:46 -03:30
committed by GitHub
parent 4da01a0e65
commit cd5f91bb7d
8 changed files with 166 additions and 13 deletions

View File

@@ -504,6 +504,11 @@ impl Table {
})
}
pub fn uri(self_: PyRef<'_, Self>) -> PyResult<Bound<'_, PyAny>> {
let inner = self_.inner_ref()?.clone();
future_into_py(self_.py(), async move { inner.uri().await.infer_error() })
}
pub fn __repr__(&self) -> String {
match &self.inner {
None => format!("ClosedTable({})", self.name),