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

Method query

postgres/examples/execute.rs:63–72  ·  view source on GitHub ↗
(self, cli: &'c Client)

Source from the content-addressed store, hash-verified

61 Ok(RowStreamOwned::from(stream))
62 }
63 }
64
65 // use the new type to prepare and execute a statement.
66 let row_affected = PrepareAndExecute {
67 stmt: "SELECT 1",
68 types: &[],
69 }
70 .execute(&cli)
71 .await?;
72 assert_eq!(row_affected, 1);
73
74 // use the new type to prepare and query a statement
75 let rows = PrepareAndExecute {

Callers 3

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected