pub fn in_transaction(&self) -> bool {
        matches!(self.inner, ConnectionInner::Transaction { .. })
    }
Checks if the `Connection` is currently within database transaction.
core/lib/db_connection/src/connection.rs