pub struct QueryRequest {
pub account: Option<String>,
pub user: Option<String>,
pub warehouse: Option<String>,
pub role: Option<String>,
pub database: Option<String>,
pub schema: Option<String>,
pub sql: String,
}Expand description
A single arbitrary-SQL query request routed to the engine.
account/user and the per-query context default to the engine config when
omitted. Serialized by the CLI client (after fill_defaults_from
resolution) and deserialized from the daemon query op payload.
Fields§
§account: Option<String>Target account; falls back to SNOWFLAKE_ACCOUNT.
user: Option<String>Authenticating user; falls back to SNOWFLAKE_USER.
warehouse: Option<String>Per-query USE WAREHOUSE override.
role: Option<String>Per-query USE ROLE override.
database: Option<String>Per-query USE DATABASE override.
schema: Option<String>Per-query USE SCHEMA override.
sql: StringThe SQL to execute.
Implementations§
Source§impl QueryRequest
impl QueryRequest
Sourcepub fn fill_defaults_from(&mut self, env: &impl EnvSource)
pub fn fill_defaults_from(&mut self, env: &impl EnvSource)
Fills each unset identity/context field from env.
Called by the CLI client with a profile-aware source
(SettingsEnv) so that
--profile / OMNI_DEV_PROFILE resolve in the invoking process —
the daemon’s startup defaults then only back-fill requests that still
omit a field (e.g. bare socket clients). Explicit values are never
overwritten.
Trait Implementations§
Source§impl Clone for QueryRequest
impl Clone for QueryRequest
Source§fn clone(&self) -> QueryRequest
fn clone(&self) -> QueryRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueryRequest
impl Debug for QueryRequest
Source§impl Default for QueryRequest
impl Default for QueryRequest
Source§fn default() -> QueryRequest
fn default() -> QueryRequest
Source§impl<'de> Deserialize<'de> for QueryRequestwhere
QueryRequest: Default,
impl<'de> Deserialize<'de> for QueryRequestwhere
QueryRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for QueryRequest
impl RefUnwindSafe for QueryRequest
impl Send for QueryRequest
impl Sync for QueryRequest
impl Unpin for QueryRequest
impl UnsafeUnpin for QueryRequest
impl UnwindSafe for QueryRequest
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more