Skip to main content

Module session

Module session 

Source
Expand description

Session model (spec section 10.4, S1D-004).

A Session is the server-side state of one client session: who is connected, which database they are on, what transaction is active, which statements are prepared, the session settings, the read-your-writes token, and when the session was last active. Sessions are lightweight and do not own storage (S1D-004): the type here is data only — storage handles, execution state, and admission slots are owned by the server and referenced by id. Idle-time bounds (S1D-007) are enforced against Session::last_activity_unix_micros.

Structs§

Session
The server-side state of one client session (S1D-004).

Enums§

TransactionState
The transaction state of a session (S1D-004).