Struct arrow_flight::sql::CommandGetPrimaryKeys
source · pub struct CommandGetPrimaryKeys {
pub catalog: Option<String>,
pub db_schema: Option<String>,
pub table: String,
}
Expand description
Represents a request to retrieve the primary keys of a table on a Flight SQL enabled backend. Used in the command member of FlightDescriptor for the following RPC calls:
- GetSchema: return the Arrow schema of the query.
- GetFlightInfo: execute the catalog metadata request.
The returned Arrow schema will be: < catalog_name: utf8, db_schema_name: utf8, table_name: utf8 not null, column_name: utf8 not null, key_name: utf8, key_sequence: int not null > The returned data should be ordered by catalog_name, db_schema_name, table_name, key_name, then key_sequence.
Fields§
§catalog: Option<String>
Specifies the catalog to search for the table. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
db_schema: Option<String>
Specifies the schema to search for the table. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
table: String
Specifies the table to get the primary keys for.
Implementations§
Trait Implementations§
source§impl Clone for CommandGetPrimaryKeys
impl Clone for CommandGetPrimaryKeys
source§fn clone(&self) -> CommandGetPrimaryKeys
fn clone(&self) -> CommandGetPrimaryKeys
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CommandGetPrimaryKeys
impl Debug for CommandGetPrimaryKeys
source§impl Default for CommandGetPrimaryKeys
impl Default for CommandGetPrimaryKeys
source§impl Message for CommandGetPrimaryKeys
impl Message for CommandGetPrimaryKeys
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq<CommandGetPrimaryKeys> for CommandGetPrimaryKeys
impl PartialEq<CommandGetPrimaryKeys> for CommandGetPrimaryKeys
source§fn eq(&self, other: &CommandGetPrimaryKeys) -> bool
fn eq(&self, other: &CommandGetPrimaryKeys) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CommandGetPrimaryKeys
Auto Trait Implementations§
impl RefUnwindSafe for CommandGetPrimaryKeys
impl Send for CommandGetPrimaryKeys
impl Sync for CommandGetPrimaryKeys
impl Unpin for CommandGetPrimaryKeys
impl UnwindSafe for CommandGetPrimaryKeys
Blanket Implementations§
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