| 128 | } |
| 129 | |
| 130 | arrow::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 | |
| 140 | std::string PrepareQueryForGetImportedOrExportedKeys(const std::string& filter) { |
| 141 | return R"(SELECT * FROM (SELECT NULL AS pk_catalog_name, |
no outgoing calls
no test coverage detected