MCPcopy Create free account
hub / github.com/apache/arrow-rs / get_flight_info_for_command

Method get_flight_info_for_command

arrow-flight/src/sql/client.rs:135–143  ·  view source on GitHub ↗
(
        &mut self,
        cmd: M,
    )

Source from the content-addressed store, hash-verified

133 }
134
135 async fn get_flight_info_for_command<M: ProstMessageExt>(
136 &mut self,
137 cmd: M,
138 ) -> Result<FlightInfo> {
139 let descriptor = FlightDescriptor::new_cmd(cmd.as_any().encode_to_vec());
140 let req = self.set_request_headers(descriptor.into_request())?;
141 let fi = self.flight_client.get_flight_info(req).await?.into_inner();
142 Ok(fi)
143 }
144
145 /// Execute a query on the server.
146 pub async fn execute(

Callers 11

executeMethod · 0.80
get_catalogsMethod · 0.80
get_db_schemasMethod · 0.80
get_tablesMethod · 0.80
get_primary_keysMethod · 0.80
get_exported_keysMethod · 0.80
get_imported_keysMethod · 0.80
get_cross_referenceMethod · 0.80
get_table_typesMethod · 0.80
get_sql_infoMethod · 0.80
get_xdbc_type_infoMethod · 0.80

Calls 4

set_request_headersMethod · 0.80
as_anyMethod · 0.45
into_innerMethod · 0.45
get_flight_infoMethod · 0.45

Tested by

no test coverage detected