//! RESP per-connection session state.
usecrate::types::TenantId;/// Per-connection state for a RESP session.
////// Tracks the selected KV collection and authenticated tenant.
/// Each TCP connection gets its own session.
pubstructRespSession{/// Currently selected KV collection (via SELECT command).
/// Defaults to "default" — the implicit KV collection.
pubcollection: String,
/// Tenant ID for this connection.
/// Defaults to tenant 1 (single-tenant mode).
/// In multi-tenant mode, set after AUTH.
pubtenant_id: TenantId,
}implDefault forRespSession{fndefault()->Self{Self{
collection:"default".into(),
tenant_id:TenantId::new(1),}}}