Skip to main content

Module snowflake

Module snowflake 

Source
Expand description

Account-agnostic Snowflake query engine hosted by the daemon.

Each (account, user) keeps a bounded pool of authenticated sessions (see session). A query checks one out, applies any per-query context with USE (skipping USEs already in effect), runs concurrently with other checkouts, and returns it. This gives concurrent queries on a single authentication identity while still honoring per-query warehouse/role/database/schema, with the number of browser auths capped at the pool size and grown lazily.

This is the standalone engine, analogous to crate::browser; the daemon adapter lives in crate::daemon::services::snowflake.

Modules§

client
A clean-room Snowflake client: external-browser SSO + the v1 query endpoint, with session-token renewal and keep-alive heartbeats.
session
Bounded session pools for concurrent, per-query-context Snowflake access.

Structs§

QueryRequest
A single arbitrary-SQL query request routed to the engine.
SnowflakeEngine
The account-agnostic Snowflake query engine: lazy multiplexed auth, bounded per-identity session pools, and concurrent arbitrary-SQL execution.
SnowflakeEngineConfig
Engine defaults, resolved from environment variables and then ~/.omni-dev/settings.json (the Atlassian credential-resolution pattern).