MCPcopy Create free account
hub / github.com/apache/arrow-rs / unpack_prepared_statement_handle

Method unpack_prepared_statement_handle

arrow-flight/src/sql/client.rs:602–605  ·  view source on GitHub ↗

Decodes the app_metadata stored in a [`PutResult`] as a [`DoPutPreparedStatementResult`] and then returns the inner prepared statement handle as [`Bytes`]

(&self, put_result: &PutResult)

Source from the content-addressed store, hash-verified

600 /// [`DoPutPreparedStatementResult`] and then returns
601 /// the inner prepared statement handle as [`Bytes`]
602 fn unpack_prepared_statement_handle(&self, put_result: &PutResult) -> Result<Option<Bytes>> {
603 let result: DoPutPreparedStatementResult = Message::decode(&*put_result.app_metadata)?;
604 Ok(result.prepared_statement_handle)
605 }
606
607 /// Close the prepared statement, so that this PreparedStatement can not used
608 /// anymore and server can free up any resources.

Callers 1

write_bind_paramsMethod · 0.80

Calls 1

decodeFunction · 0.50

Tested by

no test coverage detected