MCPcopy Create free account
hub / github.com/TankHQ/tank / fetch

Method fetch

tank-core/src/executor.rs:63–74  ·  view source on GitHub ↗

Executes a query and streams the resulting rows, ignoring affected counts.

(
        &'s mut self,
        query: impl AsQuery<Self::Driver> + 's,
    )

Source from the content-addressed store, hash-verified

61
62 /// Executes a query and streams the resulting rows, ignoring affected counts.
63 fn fetch<'s>(
64 &'s mut self,
65 query: impl AsQuery<Self::Driver> + 's,
66 ) -> impl Stream<Item = Result<Row>> + Send {
67 self.run(query).filter_map(|v| async move {
68 match v {
69 Ok(QueryResult::Row(v)) => Some(Ok(v)),
70 Err(e) => Some(Err(e)),
71 _ => None,
72 }
73 })
74 }
75
76 /// Executes a query and returns the total number of affected rows.
77 fn execute<'s>(

Callers

nothing calls this directly

Implementers 13

connection.rstank-sqlite/src/connection.rs
connection.rstank-duckdb/src/connection.rs
executor.rstank-mysql/src/executor.rs
pool.rstank-core/src/pool.rs
executor.rstank-core/src/executor.rs
connection.rstank-postgres/src/connection.rs
transaction.rstank-postgres/src/transaction.rs
connection.rstank-valkey/src/connection.rs
transaction.rstank-valkey/src/transaction.rs
connection.rstank-yourdb/src/connection.rs
connection.rstank-scylladb/src/connection.rs
transaction.rstank-scylladb/src/transaction.rs

Calls 2

SomeClass · 0.85
runMethod · 0.45

Tested by

no test coverage detected