docs: add the async python API to the docs (#1156)

This commit is contained in:
Weston Pace
2024-03-26 07:54:16 -05:00
parent ccf13f15d4
commit f97c7dad8c
13 changed files with 623 additions and 399 deletions

View File

@@ -80,6 +80,13 @@ impl Table {
})
}
pub fn delete<'a>(self_: PyRef<'a, Self>, condition: String) -> PyResult<&'a PyAny> {
let inner = self_.inner_ref()?.clone();
future_into_py(self_.py(), async move {
inner.delete(&condition).await.infer_error()
})
}
pub fn update<'a>(
self_: PyRef<'a, Self>,
updates: &PyDict,