MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / stream

Method stream

src/database/transaction.rs:437–449  ·  view source on GitHub ↗
(
        &'a self,
        stmt: Statement,
    )

Source from the content-addressed store, hash-verified

435
436 #[instrument(level = "trace")]
437 fn stream<'a>(
438 &'a self,
439 stmt: Statement,
440 ) -> Pin<Box<dyn Future<Output = Result<Self::Stream<'a>, DbErr>> + 'a + Send>> {
441 Box::pin(async move {
442 let conn = self.conn.lock().await;
443 Ok(crate::TransactionStream::build(
444 conn,
445 stmt,
446 self.metric_callback.clone(),
447 ))
448 })
449 }
450}
451
452#[async_trait::async_trait]

Callers 3

test_stream_1Function · 0.45
test_stream_2Function · 0.45

Calls 1

lockMethod · 0.80

Tested by 3

test_stream_1Function · 0.36
test_stream_2Function · 0.36