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:
| Endpoint | Event | Model answers with |
|---|---|---|
POST /session/v1/login-request | snowflake_login | a session token (or a refusal) |
POST /queries/v1/query-request | snowflake_query | a rowset (or an error) |
POST /session/logout-request | snowflake_session (logout) | an ack |
POST /session/token-request | snowflake_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§
- Snowflake
Server - Snowflake server.
Constants§
- MAX_
REQUEST_ BYTES - Largest request body this server will buffer.