Struct arrow_flight::sql::client::PreparedStatement
source · pub struct PreparedStatement<T> { /* private fields */ }
Expand description
A PreparedStatement
Implementations§
source§impl PreparedStatement<Channel>
impl PreparedStatement<Channel>
sourcepub async fn execute(&mut self) -> Result<FlightInfo, ArrowError>
pub async fn execute(&mut self) -> Result<FlightInfo, ArrowError>
Executes the prepared statement query on the server.
sourcepub async fn execute_update(&mut self) -> Result<i64, ArrowError>
pub async fn execute_update(&mut self) -> Result<i64, ArrowError>
Executes the prepared statement update query on the server.
sourcepub fn parameter_schema(&self) -> Result<&Schema, ArrowError>
pub fn parameter_schema(&self) -> Result<&Schema, ArrowError>
Retrieve the parameter schema from the query.
sourcepub fn dataset_schema(&self) -> Result<&Schema, ArrowError>
pub fn dataset_schema(&self) -> Result<&Schema, ArrowError>
Retrieve the ResultSet schema from the query.
sourcepub fn set_parameters(
&mut self,
parameter_binding: RecordBatch,
) -> Result<(), ArrowError>
pub fn set_parameters( &mut self, parameter_binding: RecordBatch, ) -> Result<(), ArrowError>
Set a RecordBatch that contains the parameters that will be bind.
sourcepub async fn close(self) -> Result<(), ArrowError>
pub async fn close(self) -> Result<(), ArrowError>
Close the prepared statement, so that this PreparedStatement can not used anymore and server can free up any resources.
Trait Implementations§
source§impl<T: Clone> Clone for PreparedStatement<T>
impl<T: Clone> Clone for PreparedStatement<T>
source§fn clone(&self) -> PreparedStatement<T>
fn clone(&self) -> PreparedStatement<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for PreparedStatement<T>
impl<T> !RefUnwindSafe for PreparedStatement<T>
impl<T> Send for PreparedStatement<T>where
T: Send,
impl<T> Sync for PreparedStatement<T>where
T: Sync,
impl<T> Unpin for PreparedStatement<T>where
T: Unpin,
impl<T> !UnwindSafe for PreparedStatement<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request