pub struct GetDbSchemasBuilder {
catalog_filter: Option<String>,
db_schema_filter_pattern: Option<String>,
catalog_name: StringBuilder,
db_schema_name: StringBuilder,
}
Expand description
A builder for a CommandGetDbSchemas
response.
Builds rows like this:
- catalog_name: utf8,
- db_schema_name: utf8,
Fields§
§catalog_filter: Option<String>
§db_schema_filter_pattern: Option<String>
§catalog_name: StringBuilder
§db_schema_name: StringBuilder
Implementations§
Source§impl GetDbSchemasBuilder
impl GetDbSchemasBuilder
Sourcepub fn new(
catalog: Option<impl Into<String>>,
db_schema_filter_pattern: Option<impl Into<String>>,
) -> Self
pub fn new( catalog: Option<impl Into<String>>, db_schema_filter_pattern: Option<impl Into<String>>, ) -> Self
Create a new instance of GetDbSchemasBuilder
§Parameters
catalog
: Specifies the Catalog to search for the tables.- An empty string retrieves those without a catalog.
- If omitted the catalog name is not used to narrow the search.
db_schema_filter_pattern
: Specifies a filter pattern for schemas to search for. When no 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.
Sourcepub fn append(
&mut self,
catalog_name: impl AsRef<str>,
schema_name: impl AsRef<str>,
)
pub fn append( &mut self, catalog_name: impl AsRef<str>, schema_name: impl AsRef<str>, )
Append a row
In case the catalog should be considered as empty, pass in an empty string ‘“”’.
Sourcepub fn build(self) -> Result<RecordBatch>
pub fn build(self) -> Result<RecordBatch>
builds a RecordBatch
with the correct schema for a CommandGetDbSchemas
response
Sourcepub fn schema(&self) -> SchemaRef
pub fn schema(&self) -> SchemaRef
Return the schema of the RecordBatch that will be returned
from CommandGetDbSchemas
Trait Implementations§
Source§impl From<CommandGetDbSchemas> for GetDbSchemasBuilder
impl From<CommandGetDbSchemas> for GetDbSchemasBuilder
Source§fn from(value: CommandGetDbSchemas) -> Self
fn from(value: CommandGetDbSchemas) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetDbSchemasBuilder
impl RefUnwindSafe for GetDbSchemasBuilder
impl Send for GetDbSchemasBuilder
impl Sync for GetDbSchemasBuilder
impl Unpin for GetDbSchemasBuilder
impl UnwindSafe for GetDbSchemasBuilder
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