Struct arrow_flight::sql::metadata::SqlInfoDataBuilder
source · pub struct SqlInfoDataBuilder { /* private fields */ }Expand description
Helper to create CommandGetSqlInfo responses.
CommandGetSqlInfo are metadata requests used by a Flight SQL
server to communicate supported capabilities to Flight SQL clients.
Servers constuct - usually static - SqlInfoData via the [SqlInfoDataBuilder], and build responses by passing the [GetSqlInfoBuilder`].
Implementations§
source§impl SqlInfoDataBuilder
impl SqlInfoDataBuilder
pub fn new() -> Self
sourcepub fn append(&mut self, name: impl SqlInfoName, value: impl Into<SqlInfoValue>)
pub fn append(&mut self, name: impl SqlInfoName, value: impl Into<SqlInfoValue>)
register the specific sql metadata item
sourcepub fn build(self) -> Result<SqlInfoData>
pub fn build(self) -> Result<SqlInfoData>
Encode the contents of this list according to the FlightSQL spec
sourcepub fn schema() -> &'static Schema
pub fn schema() -> &'static Schema
Return the Schema for a GetSchema RPC call with crate::sql::CommandGetSqlInfo
Trait Implementations§
source§impl Clone for SqlInfoDataBuilder
impl Clone for SqlInfoDataBuilder
source§fn clone(&self) -> SqlInfoDataBuilder
fn clone(&self) -> SqlInfoDataBuilder
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 moresource§impl Debug for SqlInfoDataBuilder
impl Debug for SqlInfoDataBuilder
source§impl Default for SqlInfoDataBuilder
impl Default for SqlInfoDataBuilder
source§impl PartialEq<SqlInfoDataBuilder> for SqlInfoDataBuilder
impl PartialEq<SqlInfoDataBuilder> for SqlInfoDataBuilder
source§fn eq(&self, other: &SqlInfoDataBuilder) -> bool
fn eq(&self, other: &SqlInfoDataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SqlInfoDataBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SqlInfoDataBuilder
impl Send for SqlInfoDataBuilder
impl Sync for SqlInfoDataBuilder
impl Unpin for SqlInfoDataBuilder
impl UnwindSafe for SqlInfoDataBuilder
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