Skip to main content

Module snowflake

Module snowflake 

Source
Expand description

Snowflake server implementation

Serves the subset of Snowflake’s REST/JSON client protocol that a driver needs to log in and run a query:

EndpointEventModel answers with
POST /session/v1/login-requestsnowflake_logina session token (or a refusal)
POST /queries/v1/query-requestsnowflake_querya rowset (or an error)
POST /session/logout-requestsnowflake_session (logout)an ack
POST /session/token-requestsnowflake_session (token_renew)renewed tokens

hyper owns HTTP; the LLM owns the JSON. No storage: there is no session table and no row store — the model answers every request.

Fail closed. When the model gives no usable answer, or the LLM call fails, every endpoint replies with a Snowflake error envelope (success:false), never a success-shaped empty result. On the login endpoint that means no token is ever issued on an outage — an LLM failure is a refusal, and it is distinguishable in the logs (and by message) from a deliberate model denial via snowflake_error.

Modules§

actions
Snowflake protocol actions implementation

Structs§

SnowflakeServer
Snowflake server.

Constants§

MAX_REQUEST_BYTES
Largest request body this server will buffer.