Struct arrow_flight::sql::CommandGetXdbcTypeInfo
source · pub struct CommandGetXdbcTypeInfo {
pub data_type: Option<i32>,
}
Expand description
Represents a request to retrieve information about data type supported on a Flight SQL enabled backend. Used in the command member of FlightDescriptor for the following RPC calls:
- GetSchema: return the schema of the query.
- GetFlightInfo: execute the catalog metadata request.
The returned schema will be:
<
type_name: utf8 not null (The name of the data type, for example: VARCHAR, INTEGER, etc),
data_type: int32 not null (The SQL data type),
column_size: int32 (The maximum size supported by that column.
In case of exact numeric types, this represents the maximum precision.
In case of string types, this represents the character length.
In case of datetime data types, this represents the length in characters of the string representation.
NULL is returned for data types where column size is not applicable.),
literal_prefix: utf8 (Character or characters used to prefix a literal, NULL is returned for
data types where a literal prefix is not applicable.),
literal_suffix: utf8 (Character or characters used to terminate a literal,
NULL is returned for data types where a literal suffix is not applicable.),
create_params: list
Fields§
§data_type: Option<i32>
Specifies the data type to search for the info.
Implementations§
source§impl CommandGetXdbcTypeInfo
impl CommandGetXdbcTypeInfo
sourcepub fn into_builder(
self,
infos: &XdbcTypeInfoData,
) -> GetXdbcTypeInfoBuilder<'_>
pub fn into_builder( self, infos: &XdbcTypeInfoData, ) -> GetXdbcTypeInfoBuilder<'_>
Create a builder suitable for constructing a response
Trait Implementations§
source§impl Clone for CommandGetXdbcTypeInfo
impl Clone for CommandGetXdbcTypeInfo
source§fn clone(&self) -> CommandGetXdbcTypeInfo
fn clone(&self) -> CommandGetXdbcTypeInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CommandGetXdbcTypeInfo
impl Debug for CommandGetXdbcTypeInfo
source§impl Default for CommandGetXdbcTypeInfo
impl Default for CommandGetXdbcTypeInfo
source§impl Message for CommandGetXdbcTypeInfo
impl Message for CommandGetXdbcTypeInfo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.source§impl PartialEq for CommandGetXdbcTypeInfo
impl PartialEq for CommandGetXdbcTypeInfo
source§fn eq(&self, other: &CommandGetXdbcTypeInfo) -> bool
fn eq(&self, other: &CommandGetXdbcTypeInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CommandGetXdbcTypeInfo
Auto Trait Implementations§
impl Freeze for CommandGetXdbcTypeInfo
impl RefUnwindSafe for CommandGetXdbcTypeInfo
impl Send for CommandGetXdbcTypeInfo
impl Sync for CommandGetXdbcTypeInfo
impl Unpin for CommandGetXdbcTypeInfo
impl UnwindSafe for CommandGetXdbcTypeInfo
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
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>
T
in a tonic::Request