pub async fn execute_remote_with_routing<'a, W: Write>(
client: &HttpClient,
cmd: &SqlCommand,
read_mode: ResolvedSqlReadMode,
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
Dispatch a server SQL command after profile-side routing resolution.
Cluster candidates deliberately use the versioned distributed-read route instead of the legacy local SQL endpoint. Until a server supplies a prepared-result response, any non-success remains a classified client error; it is never retried through local execution.