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

Method Prepare

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

Source from the content-addressed store, hash-verified

575}
576
577arrow::Result<std::shared_ptr<PreparedStatement>> FlightSqlClient::Prepare(
578 const FlightCallOptions& options, const std::string& query,
579 const Transaction& transaction) {
580 flight_sql_pb::ActionCreatePreparedStatementRequest request;
581 request.set_query(query);
582 if (transaction.is_valid()) {
583 request.set_transaction_id(transaction.transaction_id());
584 }
585
586 ARROW_ASSIGN_OR_RAISE(auto results,
587 DoProtoAction(this, options, "CreatePreparedStatement", request))
588 return PreparedStatement::ParseResponse(this, std::move(results));
589}
590
591arrow::Result<std::shared_ptr<PreparedStatement>> FlightSqlClient::PrepareSubstrait(
592 const FlightCallOptions& options, const SubstraitPlan& plan,

Callers 2

ValidateTransactionsMethod · 0.45

Calls 1

is_validMethod · 0.45

Tested by 1

ValidateTransactionsMethod · 0.36