Expand description
Connection session management for SQLModel Rust.
This module provides a small “connection + optional console” wrapper plus a builder.
Important: this is not the SQLAlchemy/SQLModel ORM Session (unit of work / identity map).
The ORM-style session lives in sqlmodel::session and is re-exported from the
sqlmodel-session crate.
§Example
ⓘ
use sqlmodel::prelude::*;
// Basic connection session without console
let session = ConnectionSession::builder().build_with(connection);
// Connection session with auto-detected console
#[cfg(feature = "console")]
let session = ConnectionSession::builder()
.with_auto_console()
.build_with(connection);Structs§
- Connection
Session - A database session that combines connection management with optional console output.
- Connection
Session Builder - Builder for creating ConnectionSession instances with fluent API.