MCPcopy Create free account
hub / github.com/apache/arrow / GetCrossReference

Method GetCrossReference

cpp/src/arrow/flight/sql/client.cc:493–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493arrow::Result<std::unique_ptr<FlightInfo>> FlightSqlClient::GetCrossReference(
494 const FlightCallOptions& options, const TableRef& pk_table_ref,
495 const TableRef& fk_table_ref) {
496 flight_sql_pb::CommandGetCrossReference command;
497
498 if (pk_table_ref.catalog.has_value()) {
499 command.set_pk_catalog(pk_table_ref.catalog.value());
500 }
501 if (pk_table_ref.db_schema.has_value()) {
502 command.set_pk_db_schema(pk_table_ref.db_schema.value());
503 }
504 command.set_pk_table(pk_table_ref.table);
505
506 if (fk_table_ref.catalog.has_value()) {
507 command.set_fk_catalog(fk_table_ref.catalog.value());
508 }
509 if (fk_table_ref.db_schema.has_value()) {
510 command.set_fk_db_schema(fk_table_ref.db_schema.value());
511 }
512 command.set_fk_table(fk_table_ref.table);
513
514 return GetFlightInfoForCommand(this, options, command);
515}
516
517arrow::Result<std::unique_ptr<SchemaResult>> FlightSqlClient::GetCrossReferenceSchema(
518 const FlightCallOptions& options) {

Callers 1

Calls 2

GetFlightInfoForCommandFunction · 0.70
valueMethod · 0.45

Tested by 1