#[non_exhaustive]pub struct QueryExecutionContextBuilder { /* private fields */ }Expand description
A builder for QueryExecutionContext.
Implementations§
source§impl QueryExecutionContextBuilder
impl QueryExecutionContextBuilder
sourcepub fn database(self, input: impl Into<String>) -> Self
pub fn database(self, input: impl Into<String>) -> Self
The name of the database used in the query execution. The database must exist in the catalog.
sourcepub fn set_database(self, input: Option<String>) -> Self
pub fn set_database(self, input: Option<String>) -> Self
The name of the database used in the query execution. The database must exist in the catalog.
sourcepub fn get_database(&self) -> &Option<String>
pub fn get_database(&self) -> &Option<String>
The name of the database used in the query execution. The database must exist in the catalog.
sourcepub fn catalog(self, input: impl Into<String>) -> Self
pub fn catalog(self, input: impl Into<String>) -> Self
The name of the data catalog used in the query execution.
sourcepub fn set_catalog(self, input: Option<String>) -> Self
pub fn set_catalog(self, input: Option<String>) -> Self
The name of the data catalog used in the query execution.
sourcepub fn get_catalog(&self) -> &Option<String>
pub fn get_catalog(&self) -> &Option<String>
The name of the data catalog used in the query execution.
sourcepub fn build(self) -> QueryExecutionContext
pub fn build(self) -> QueryExecutionContext
Consumes the builder and constructs a QueryExecutionContext.
Trait Implementations§
source§impl Clone for QueryExecutionContextBuilder
impl Clone for QueryExecutionContextBuilder
source§fn clone(&self) -> QueryExecutionContextBuilder
fn clone(&self) -> QueryExecutionContextBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for QueryExecutionContextBuilder
impl Debug for QueryExecutionContextBuilder
source§impl Default for QueryExecutionContextBuilder
impl Default for QueryExecutionContextBuilder
source§fn default() -> QueryExecutionContextBuilder
fn default() -> QueryExecutionContextBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for QueryExecutionContextBuilder
impl PartialEq for QueryExecutionContextBuilder
source§fn eq(&self, other: &QueryExecutionContextBuilder) -> bool
fn eq(&self, other: &QueryExecutionContextBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for QueryExecutionContextBuilder
Auto Trait Implementations§
impl RefUnwindSafe for QueryExecutionContextBuilder
impl Send for QueryExecutionContextBuilder
impl Sync for QueryExecutionContextBuilder
impl Unpin for QueryExecutionContextBuilder
impl UnwindSafe for QueryExecutionContextBuilder
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
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>
Creates a shared type from an unshared type.