| 366 | } |
| 367 | |
| 368 | arrow::Result<std::unique_ptr<FlightInfo>> FlightSqlClient::GetDbSchemas( |
| 369 | const FlightCallOptions& options, const std::string* catalog, |
| 370 | const std::string* db_schema_filter_pattern) { |
| 371 | flight_sql_pb::CommandGetDbSchemas command; |
| 372 | if (catalog != NULLPTR) { |
| 373 | command.set_catalog(*catalog); |
| 374 | } |
| 375 | if (db_schema_filter_pattern != NULLPTR) { |
| 376 | command.set_db_schema_filter_pattern(*db_schema_filter_pattern); |
| 377 | } |
| 378 | |
| 379 | return GetFlightInfoForCommand(this, options, command); |
| 380 | } |
| 381 | |
| 382 | arrow::Result<std::unique_ptr<SchemaResult>> FlightSqlClient::GetDbSchemasSchema( |
| 383 | const FlightCallOptions& options) { |