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

Function GetFlightInfoForCommand

cpp/src/arrow/flight/sql/example/sqlite_server.cc:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130arrow::Result<std::unique_ptr<FlightInfo>> GetFlightInfoForCommand(
131 const FlightDescriptor& descriptor, const std::shared_ptr<Schema>& schema) {
132 std::vector<FlightEndpoint> endpoints{
133 FlightEndpoint{Ticket{descriptor.cmd}, {}, std::nullopt, ""}};
134 ARROW_ASSIGN_OR_RAISE(auto result,
135 FlightInfo::Make(*schema, descriptor, endpoints, -1, -1, false))
136
137 return std::make_unique<FlightInfo>(result);
138}
139
140std::string PrepareQueryForGetImportedOrExportedKeys(const std::string& filter) {
141 return R"(SELECT * FROM (SELECT NULL AS pk_catalog_name,

Calls

no outgoing calls

Tested by

no test coverage detected