pub struct SpannerStatement { /* private fields */ }Expand description
An ADBC statement bound to a Spanner DatabaseClient.
Trait Implementations§
Source§impl Optionable for SpannerStatement
impl Optionable for SpannerStatement
type Option = OptionStatement
Source§fn set_option(&mut self, key: Self::Option, _value: OptionValue) -> Result<()>
fn set_option(&mut self, key: Self::Option, _value: OptionValue) -> Result<()>
Set a post-init option.
Source§fn get_option_string(&self, key: Self::Option) -> Result<String>
fn get_option_string(&self, key: Self::Option) -> Result<String>
Get a string option value by key.
Source§fn get_option_bytes(&self, key: Self::Option) -> Result<Vec<u8>>
fn get_option_bytes(&self, key: Self::Option) -> Result<Vec<u8>>
Get a bytes option value by key.
Source§impl Statement for SpannerStatement
impl Statement for SpannerStatement
Source§fn bind(&mut self, _batch: RecordBatch) -> Result<()>
fn bind(&mut self, _batch: RecordBatch) -> Result<()>
Bind Arrow data. This can be used for bulk inserts or prepared
statements.
Source§fn bind_stream(
&mut self,
_reader: Box<dyn RecordBatchReader + Send>,
) -> Result<()>
fn bind_stream( &mut self, _reader: Box<dyn RecordBatchReader + Send>, ) -> Result<()>
Bind Arrow data. This can be used for bulk inserts or prepared
statements.
Source§fn execute(&mut self) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
fn execute(&mut self) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
Execute a statement and get the results. Read more
Source§fn execute_update(&mut self) -> Result<Option<i64>>
fn execute_update(&mut self) -> Result<Option<i64>>
Execute a statement that doesn’t have a result set and get the number
of affected rows. Read more
Source§fn execute_schema(&mut self) -> Result<Schema>
fn execute_schema(&mut self) -> Result<Schema>
Get the schema of the result set of a query without executing it. Read more
Source§fn execute_partitions(&mut self) -> Result<PartitionedResult>
fn execute_partitions(&mut self) -> Result<PartitionedResult>
Execute a statement and get the results as a partitioned result set.
Source§fn get_parameter_schema(&self) -> Result<Schema>
fn get_parameter_schema(&self) -> Result<Schema>
Get the schema for bound parameters. Read more
Source§fn prepare(&mut self) -> Result<()>
fn prepare(&mut self) -> Result<()>
Turn this statement into a prepared statement to be executed multiple
times. Read more
Source§fn set_sql_query(&mut self, query: impl AsRef<str>) -> Result<()>
fn set_sql_query(&mut self, query: impl AsRef<str>) -> Result<()>
Set the SQL query to execute. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SpannerStatement
impl !UnwindSafe for SpannerStatement
impl Freeze for SpannerStatement
impl Send for SpannerStatement
impl Sync for SpannerStatement
impl Unpin for SpannerStatement
impl UnsafeUnpin for SpannerStatement
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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