pub struct SnowflakeClientConfig {
pub account: String,
pub user: String,
pub auth: AuthMethod,
pub warehouse: Option<String>,
pub role: Option<String>,
pub database: Option<String>,
pub schema: Option<String>,
pub host: Option<String>,
pub http_timeout: Duration,
pub query_timeout: Duration,
}Expand description
Everything needed to authenticate and run queries against one account/user.
Fields§
§account: StringSnowflake account identifier.
user: StringLogin user.
auth: AuthMethodAuthentication method.
warehouse: Option<String>Default warehouse applied at login.
role: Option<String>Default role applied at login.
database: Option<String>Default database applied at login.
schema: Option<String>Default schema applied at login.
host: Option<String>Override the API host (defaults to <account>.snowflakecomputing.com).
http_timeout: DurationPer-request HTTP timeout for REST calls (not the SSO callback wait).
query_timeout: DurationOverall deadline for one query (submit + async-result polling).
Implementations§
Source§impl SnowflakeClientConfig
impl SnowflakeClientConfig
Sourcepub fn external_browser(
account: impl Into<String>,
user: impl Into<String>,
) -> Self
pub fn external_browser( account: impl Into<String>, user: impl Into<String>, ) -> Self
Builds a config for external-browser SSO with default browser settings.
Sourcepub fn api_host(&self) -> String
pub fn api_host(&self) -> String
The API host for this account.
Uses the host override when set; otherwise derives
<account>.snowflakecomputing.com from the account identifier — lowercased
and with underscores mapped to dashes (Snowflake’s URL rule), while region/
cloud dot-segments (e.g. acct.us-east-1.aws) are preserved.
Trait Implementations§
Source§impl Clone for SnowflakeClientConfig
impl Clone for SnowflakeClientConfig
Source§fn clone(&self) -> SnowflakeClientConfig
fn clone(&self) -> SnowflakeClientConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more