pub struct SpannerConnection { /* private fields */ }Expand description
An ADBC connection to a Spanner database.
Trait Implementations§
Source§impl Connection for SpannerConnection
impl Connection for SpannerConnection
Source§fn get_table_types(&self) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
fn get_table_types(&self) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
Return the table types supported by Spanner as a single-column (table_type: utf8) batch,
per the ADBC specification.
type StatementType = SpannerStatement
Source§fn new_statement(&mut self) -> Result<Self::StatementType>
fn new_statement(&mut self) -> Result<Self::StatementType>
Allocate and initialize a new statement.
Source§fn get_info(
&self,
_codes: Option<HashSet<InfoCode>>,
) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
fn get_info( &self, _codes: Option<HashSet<InfoCode>>, ) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
Get metadata about the database/driver. Read more
Source§fn get_objects(
&self,
_depth: ObjectDepth,
_catalog: Option<&str>,
_db_schema: Option<&str>,
_table_name: Option<&str>,
_table_type: Option<Vec<&str>>,
_column_name: Option<&str>,
) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
fn get_objects( &self, _depth: ObjectDepth, _catalog: Option<&str>, _db_schema: Option<&str>, _table_name: Option<&str>, _table_type: Option<Vec<&str>>, _column_name: Option<&str>, ) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
Get a hierarchical view of all catalogs, database schemas, tables, and
columns. Read more
Source§fn get_table_schema(
&self,
_catalog: Option<&str>,
_db_schema: Option<&str>,
_table_name: &str,
) -> Result<Schema>
fn get_table_schema( &self, _catalog: Option<&str>, _db_schema: Option<&str>, _table_name: &str, ) -> Result<Schema>
Get the Arrow schema of a table. Read more
Source§fn get_statistic_names(
&self,
) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
fn get_statistic_names( &self, ) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
Get the names of statistics specific to this driver. Read more
Source§fn get_statistics(
&self,
_catalog: Option<&str>,
_db_schema: Option<&str>,
_table_name: Option<&str>,
_approximate: bool,
) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
fn get_statistics( &self, _catalog: Option<&str>, _db_schema: Option<&str>, _table_name: Option<&str>, _approximate: bool, ) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
Get statistics about the data distribution of table(s). Read more
Source§fn commit(&mut self) -> Result<()>
fn commit(&mut self) -> Result<()>
Commit any pending transactions. Only used if autocommit is disabled. Read more
Source§fn rollback(&mut self) -> Result<()>
fn rollback(&mut self) -> Result<()>
Roll back any pending transactions. Only used if autocommit is disabled. Read more
Source§fn read_partition(
&self,
_partition: impl AsRef<[u8]>,
) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
fn read_partition( &self, _partition: impl AsRef<[u8]>, ) -> Result<Box<dyn RecordBatchReader + Send + 'static>>
Retrieve a given partition of data. Read more
Source§impl Optionable for SpannerConnection
impl Optionable for SpannerConnection
type Option = OptionConnection
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.
Auto Trait Implementations§
impl !RefUnwindSafe for SpannerConnection
impl !UnwindSafe for SpannerConnection
impl Freeze for SpannerConnection
impl Send for SpannerConnection
impl Sync for SpannerConnection
impl Unpin for SpannerConnection
impl UnsafeUnpin for SpannerConnection
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