(cmd: BuiltinCommand, client: &Client)
| 16 | use crate::util::postgres::postgres_client; |
| 17 | |
| 18 | async fn execute_input(cmd: BuiltinCommand, client: &Client) -> Result<(), anyhow::Error> { |
| 19 | for query in cmd.input { |
| 20 | println!(">> {}", query); |
| 21 | // `query` is raw SQL from testdrive input and may contain multiple |
| 22 | // statements; this command intentionally forwards it verbatim. |
| 23 | #[allow(clippy::disallowed_methods)] |
| 24 | client |
| 25 | .batch_execute(&query) |
| 26 | .await |
| 27 | .context("executing postgres query")?; |
| 28 | } |
| 29 | Ok(()) |
| 30 | } |
| 31 | |
| 32 | pub async fn run_execute( |
| 33 | mut cmd: BuiltinCommand, |
no test coverage detected