pub struct XdbcTypeInfoData {
batch: RecordBatch,
}
Expand description
Helper to create CommandGetXdbcTypeInfo
responses.
CommandGetXdbcTypeInfo
are metadata requests used by a Flight SQL
server to communicate supported capabilities to Flight SQL clients.
Servers constuct - usually static - XdbcTypeInfoData
via the XdbcTypeInfoDataBuilder
,
and build responses using CommandGetXdbcTypeInfo::into_builder
.
Fields§
§batch: RecordBatch
Implementations§
Source§impl XdbcTypeInfoData
impl XdbcTypeInfoData
Sourcepub fn record_batch(
&self,
data_type: impl Into<Option<i32>>,
) -> Result<RecordBatch>
pub fn record_batch( &self, data_type: impl Into<Option<i32>>, ) -> Result<RecordBatch>
Return the raw (not encoded) RecordBatch that will be returned
from CommandGetXdbcTypeInfo
Sourcepub fn schema(&self) -> SchemaRef
pub fn schema(&self) -> SchemaRef
Return the schema of the RecordBatch that will be returned
from CommandGetXdbcTypeInfo
Auto Trait Implementations§
impl Freeze for XdbcTypeInfoData
impl !RefUnwindSafe for XdbcTypeInfoData
impl Send for XdbcTypeInfoData
impl Sync for XdbcTypeInfoData
impl Unpin for XdbcTypeInfoData
impl !UnwindSafe for XdbcTypeInfoData
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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