Skip to main content

Module session

Module session 

Source
Expand description

ORM session re-exports.

sqlmodel::Session is the SQLAlchemy/SQLModel-style session: identity map + unit-of-work + explicit lazy/batch loading APIs.

The implementation lives in the separate sqlmodel-session crate. This module exists so the sqlmodel facade can expose the ORM session without forcing users to depend on sub-crates directly.

For a lightweight “connection + optional console” wrapper, use sqlmodel::ConnectionSession.

Structs§

GetOptions
Options for Session::get_with_options().
ObjectKey
Unique key for an object in the identity map.
Session
The Session is the central unit-of-work manager.
SessionConfig
Configuration for Session behavior.
SessionDebugInfo
Debug information about session state.

Enums§

ObjectState
State of a tracked object in the session.