(
&'py self,
query: Query,
config: StreamConfig,
py: Python<'py>,
)
| 273 | } |
| 274 | |
| 275 | pub fn stream<'py>( |
| 276 | &'py self, |
| 277 | query: Query, |
| 278 | config: StreamConfig, |
| 279 | py: Python<'py>, |
| 280 | ) -> PyResult<Bound<'py, PyAny>> { |
| 281 | let inner = Arc::clone(&self.inner); |
| 282 | |
| 283 | future_into_py(py, async move { |
| 284 | let query = query.try_convert().context("parse query")?; |
| 285 | let config = config.try_convert().context("parse config")?; |
| 286 | |
| 287 | let inner = inner |
| 288 | .stream(query, config) |
| 289 | .await |
| 290 | .context("start inner stream")?; |
| 291 | |
| 292 | Ok(QueryResponseStream::new(inner)) |
| 293 | }) |
| 294 | } |
| 295 | |
| 296 | pub fn stream_events<'py>( |
| 297 | &'py self, |
no test coverage detected