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.
A background keep-alive heartbeat (SnowflakeEngine::start_heartbeat)
periodically heartbeats idle sessions so their master tokens stay valid and
an idle pool never re-prompts browser SSO.
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§
- Query
Request - A single arbitrary-SQL query request routed to the engine.
- Snowflake
Engine - The account-agnostic Snowflake query engine: lazy multiplexed auth, bounded per-identity session pools, and concurrent arbitrary-SQL execution.
- Snowflake
Engine Config - Engine defaults, resolved from environment variables and then
~/.omni-dev/settings.json(the Atlassian credential-resolution pattern).