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

Function ParseCommandStatementUpdate

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

Source from the content-addressed store, hash-verified

210}
211
212arrow::Result<StatementUpdate> ParseCommandStatementUpdate(
213 const google::protobuf::Any& any) {
214 pb::sql::CommandStatementUpdate command;
215 if (!any.UnpackTo(&command)) {
216 return Status::Invalid("Unable to unpack CommandStatementUpdate.");
217 }
218
219 StatementUpdate result;
220 result.query = command.query();
221 result.transaction_id = command.transaction_id();
222 return result;
223}
224
225arrow::Result<PreparedStatementUpdate> ParseCommandPreparedStatementUpdate(
226 const google::protobuf::Any& any) {

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected