(
&'py self,
query: Query,
config: StreamConfig,
py: Python<'py>,
)
| 87 | } |
| 88 | |
| 89 | pub fn collect<'py>( |
| 90 | &'py self, |
| 91 | query: Query, |
| 92 | config: StreamConfig, |
| 93 | py: Python<'py>, |
| 94 | ) -> PyResult<Bound<'py, PyAny>> { |
| 95 | let inner = Arc::clone(&self.inner); |
| 96 | |
| 97 | future_into_py(py, async move { |
| 98 | let query = query.try_convert().context("parse query")?; |
| 99 | let config = config.try_convert().context("parse config")?; |
| 100 | |
| 101 | let res = inner |
| 102 | .collect(query, config) |
| 103 | .await |
| 104 | .context("collect arrow")?; |
| 105 | |
| 106 | let res = convert_response(res).context("convert response to pyarrow")?; |
| 107 | |
| 108 | Ok(res) |
| 109 | }) |
| 110 | } |
| 111 | |
| 112 | pub fn collect_events<'py>( |
| 113 | &'py self, |
no test coverage detected