Skip to main content

execute_remote_with_formatter

Function execute_remote_with_formatter 

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

Execute a SQL command against a remote server using HttpClient.

--output json emits an array of result sets (currently a single element, matching the local output contract; server-side per-statement results are tracked as issue #31).