Skip to main content

execute_remote_with_formatter_factory

Function execute_remote_with_formatter_factory 

Source
pub async fn execute_remote_with_formatter_factory<'a, W: Write>(
    client: &HttpClient,
    cmd: &SqlCommand,
    batch_mode: &BatchMode,
    ui_mode: UiMode,
    writer: &mut W,
    make_formatter: &mut dyn FnMut() -> Box<dyn Formatter>,
    admin_launcher: Option<Box<dyn FnMut() -> Result<()> + 'a>>,
    limit: Option<usize>,
    quiet: bool,
) -> Result<()>
Expand description

Execute a remote SQL command using formatters supplied by make_formatter.

See execute_with_formatter_factory for the output contract.