MCPcopy Create free account
hub / github.com/HFQR/xitca-web / execute

Method execute

postgres/src/pool/execute.rs:22–31  ·  view source on GitHub ↗
(self, pool: &'c Pool)

Source from the content-addressed store, hash-verified

20 #[inline]
21 async fn execute(self, pool: &'c Pool) -> Result<Self::ExecuteOutput, Error> {
22 // response is owned so the connection goes back to the pool before it's awaited.
23 let affected = {
24 let conn = pool.get().await?;
25 self.query(&conn).await.map(RowAffected::from)
26 };
27 affected?.await
28 }
29
30 #[inline]
31 async fn query(self, pool: &'c Pool) -> Result<Self::QueryOutput, Error> {
32 let conn = pool.get().await?;
33 self.query(&conn).await
34 }

Callers 5

execute_iter_with_poolFunction · 0.45
io_uring_drvFunction · 0.45
compioFunction · 0.45
_beginMethod · 0.45

Calls 5

execute_iter_with_poolFunction · 0.85
executeFunction · 0.85
getMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected