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 more