pub struct SnowflakeEngineConfig {Show 13 fields
pub default_account: Option<String>,
pub default_user: Option<String>,
pub default_host: Option<String>,
pub default_warehouse: Option<String>,
pub default_role: Option<String>,
pub default_database: Option<String>,
pub default_schema: Option<String>,
pub auth: AuthMethod,
pub pool_size: usize,
pub http_timeout: Duration,
pub auth_timeout: Duration,
pub query_timeout: Duration,
pub heartbeat_interval: Duration,
}Expand description
Engine defaults, resolved from environment variables and then
~/.omni-dev/settings.json (the Atlassian credential-resolution pattern).
Account/user/context are optional; a request supplies its own and falls back to these. There is no hardcoded account list or alias map.
Fields§
§default_account: Option<String>Default account when a request omits --account.
default_user: Option<String>Default user when a request omits --user.
default_host: Option<String>Override the API host (verbatim) instead of deriving
<account>.snowflakecomputing.com. Set for PrivateLink / gov / custom
hosts; applies to every session this engine creates.
default_warehouse: Option<String>Default warehouse applied at session creation.
default_role: Option<String>Default role applied at session creation.
default_database: Option<String>Default database applied at session creation.
default_schema: Option<String>Default schema applied at session creation.
auth: AuthMethodHow sessions authenticate (SSO by default; PAT or key-pair JWT for non-interactive/headless use). The credential is the same for every session in every pool this engine creates.
pool_size: usizeMax concurrent sessions (and browser auths) per (account, user).
http_timeout: DurationPer-request HTTP timeout for REST calls.
auth_timeout: DurationOverall deadline for one sign-in (SSO + login) so a hung auth can’t hold the shared auth gate indefinitely.
query_timeout: DurationOverall deadline for one query (submit + async-result polling).
heartbeat_interval: DurationHow often the background task heartbeats idle sessions to keep their master token alive. Zero disables the heartbeat.
Implementations§
Source§impl SnowflakeEngineConfig
impl SnowflakeEngineConfig
Sourcepub fn from_env_and_settings() -> Result<Self>
pub fn from_env_and_settings() -> Result<Self>
Resolves defaults from env vars (then settings.json). Cheap and side-effect-free; never authenticates.
§Errors
If SNOWFLAKE_AUTHENTICATOR names an unknown method or a selected
non-interactive method is missing its credential (see
[resolve_auth_method]).
Trait Implementations§
Source§impl Clone for SnowflakeEngineConfig
impl Clone for SnowflakeEngineConfig
Source§fn clone(&self) -> SnowflakeEngineConfig
fn clone(&self) -> SnowflakeEngineConfig
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 SnowflakeEngineConfig
impl Debug for SnowflakeEngineConfig
Auto Trait Implementations§
impl Freeze for SnowflakeEngineConfig
impl RefUnwindSafe for SnowflakeEngineConfig
impl Send for SnowflakeEngineConfig
impl Sync for SnowflakeEngineConfig
impl Unpin for SnowflakeEngineConfig
impl UnsafeUnpin for SnowflakeEngineConfig
impl UnwindSafe for SnowflakeEngineConfig
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,
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