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

Function ParseCommandGetCrossReference

cpp/src/arrow/flight/sql/server.cc:50–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48namespace {
49
50arrow::Result<GetCrossReference> ParseCommandGetCrossReference(
51 const google::protobuf::Any& any) {
52 pb::sql::CommandGetCrossReference command;
53 if (!any.UnpackTo(&command)) {
54 return Status::Invalid("Unable to unpack CommandGetCrossReference.");
55 }
56
57 GetCrossReference result;
58 result.pk_table_ref = {PROPERTY_TO_OPTIONAL(command, pk_catalog),
59 PROPERTY_TO_OPTIONAL(command, pk_db_schema), command.pk_table()};
60 result.fk_table_ref = {PROPERTY_TO_OPTIONAL(command, fk_catalog),
61 PROPERTY_TO_OPTIONAL(command, fk_db_schema), command.fk_table()};
62 return result;
63}
64
65arrow::Result<GetImportedKeys> ParseCommandGetImportedKeys(
66 const google::protobuf::Any& any) {

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected