run and execute SQL statements and commands, against a context with the given print options
(
ctx: &dyn CliSessionContext,
commands: Vec<String>,
print_options: &PrintOptions,
)
| 52 | |
| 53 | /// run and execute SQL statements and commands, against a context with the given print options |
| 54 | pub async fn exec_from_commands( |
| 55 | ctx: &dyn CliSessionContext, |
| 56 | commands: Vec<String>, |
| 57 | print_options: &PrintOptions, |
| 58 | ) -> Result<()> { |
| 59 | for sql in commands { |
| 60 | exec_and_print(ctx, print_options, sql).await?; |
| 61 | } |
| 62 | |
| 63 | Ok(()) |
| 64 | } |
| 65 | |
| 66 | /// run and execute SQL statements and commands from a file, against a context with the given print options |
| 67 | pub async fn exec_from_lines( |
no test coverage detected
searching dependent graphs…