pub struct QueryContext {
pub warehouse: Option<String>,
pub role: Option<String>,
pub database: Option<String>,
pub schema: Option<String>,
}Expand description
A concrete statement context (resolved warehouse/role/database/schema names).
None means “not set / leave at the session’s current value”. A session’s
base context (captured at creation) is fully concrete, so any per-query
override can always be reset back to it.
Fields§
§warehouse: Option<String>Warehouse name.
role: Option<String>Role name.
database: Option<String>Database name.
schema: Option<String>Schema name.
Implementations§
Source§impl QueryContext
impl QueryContext
Trait Implementations§
Source§impl Clone for QueryContext
impl Clone for QueryContext
Source§fn clone(&self) -> QueryContext
fn clone(&self) -> QueryContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueryContext
impl Debug for QueryContext
Source§impl Default for QueryContext
impl Default for QueryContext
Source§fn default() -> QueryContext
fn default() -> QueryContext
Returns the “default value” for a type. Read more
impl Eq for QueryContext
Source§impl PartialEq for QueryContext
impl PartialEq for QueryContext
Source§fn eq(&self, other: &QueryContext) -> bool
fn eq(&self, other: &QueryContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QueryContext
impl Serialize for QueryContext
impl StructuralPartialEq for QueryContext
Auto Trait Implementations§
impl Freeze for QueryContext
impl RefUnwindSafe for QueryContext
impl Send for QueryContext
impl Sync for QueryContext
impl Unpin for QueryContext
impl UnsafeUnpin for QueryContext
impl UnwindSafe for QueryContext
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.