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

Method do_get

arrow-flight/src/sql/server.rs:673–709  ·  view source on GitHub ↗
(
        &self,
        request: Request<Ticket>,
    )

Source from the content-addressed store, hash-verified

671 }
672
673 async fn do_get(
674 &self,
675 request: Request<Ticket>,
676 ) -> Result<Response<Self::DoGetStream>, Status> {
677 let msg: Any =
678 Message::decode(&*request.get_ref().ticket).map_err(decode_error_to_status)?;
679
680 match Command::try_from(msg).map_err(arrow_error_to_status)? {
681 Command::TicketStatementQuery(command) => self.do_get_statement(command, request).await,
682 Command::CommandPreparedStatementQuery(command) => {
683 self.do_get_prepared_statement(command, request).await
684 }
685 Command::CommandGetCatalogs(command) => self.do_get_catalogs(command, request).await,
686 Command::CommandGetDbSchemas(command) => self.do_get_schemas(command, request).await,
687 Command::CommandGetTables(command) => self.do_get_tables(command, request).await,
688 Command::CommandGetTableTypes(command) => {
689 self.do_get_table_types(command, request).await
690 }
691 Command::CommandGetSqlInfo(command) => self.do_get_sql_info(command, request).await,
692 Command::CommandGetPrimaryKeys(command) => {
693 self.do_get_primary_keys(command, request).await
694 }
695 Command::CommandGetExportedKeys(command) => {
696 self.do_get_exported_keys(command, request).await
697 }
698 Command::CommandGetImportedKeys(command) => {
699 self.do_get_imported_keys(command, request).await
700 }
701 Command::CommandGetCrossReference(command) => {
702 self.do_get_cross_reference(command, request).await
703 }
704 Command::CommandGetXdbcTypeInfo(command) => {
705 self.do_get_xdbc_type_info(command, request).await
706 }
707 cmd => self.do_get_fallback(request, cmd.into_any()).await,
708 }
709 }
710
711 async fn do_put(
712 &self,

Callers

nothing calls this directly

Calls 15

decodeFunction · 0.50
get_refMethod · 0.45
do_get_statementMethod · 0.45
do_get_catalogsMethod · 0.45
do_get_schemasMethod · 0.45
do_get_tablesMethod · 0.45
do_get_table_typesMethod · 0.45
do_get_sql_infoMethod · 0.45
do_get_primary_keysMethod · 0.45
do_get_exported_keysMethod · 0.45
do_get_imported_keysMethod · 0.45

Tested by

no test coverage detected