pub struct CommandGetDbSchemas {
pub catalog: Option<String>,
pub db_schema_filter_pattern: Option<String>,
}
Expand description
Represents a request to retrieve the list of database schemas on a Flight SQL enabled backend. The definition of a database schema depends on vendor/implementation. It is usually a collection of tables. 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 not null
The returned data should be ordered by catalog_name, then db_schema_name.
Fields§
§catalog: Option<String>
Specifies the Catalog to search for the tables. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
db_schema_filter_pattern: Option<String>
Specifies a filter pattern for schemas to search for. When no db_schema_filter_pattern is provided, the pattern will not be used to narrow the search. In the pattern string, two special characters can be used to denote matching rules: - “%” means to match any substring with 0 or more characters. - “_” means to match any one character.
Implementations§
Source§impl CommandGetDbSchemas
impl CommandGetDbSchemas
Sourcepub fn into_builder(self) -> GetDbSchemasBuilder
pub fn into_builder(self) -> GetDbSchemasBuilder
Create a builder suitable for constructing a response
Trait Implementations§
Source§impl Clone for CommandGetDbSchemas
impl Clone for CommandGetDbSchemas
Source§fn clone(&self) -> CommandGetDbSchemas
fn clone(&self) -> CommandGetDbSchemas
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CommandGetDbSchemas
impl Debug for CommandGetDbSchemas
Source§impl Default for CommandGetDbSchemas
impl Default for CommandGetDbSchemas
Source§impl From<CommandGetDbSchemas> for GetDbSchemasBuilder
impl From<CommandGetDbSchemas> for GetDbSchemasBuilder
Source§fn from(value: CommandGetDbSchemas) -> Self
fn from(value: CommandGetDbSchemas) -> Self
Source§impl Message for CommandGetDbSchemas
impl Message for CommandGetDbSchemas
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl PartialEq for CommandGetDbSchemas
impl PartialEq for CommandGetDbSchemas
impl StructuralPartialEq for CommandGetDbSchemas
Auto Trait Implementations§
impl Freeze for CommandGetDbSchemas
impl RefUnwindSafe for CommandGetDbSchemas
impl Send for CommandGetDbSchemas
impl Sync for CommandGetDbSchemas
impl Unpin for CommandGetDbSchemas
impl UnwindSafe for CommandGetDbSchemas
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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>
T
in a tonic::Request