use crate::types::TransactionOptions;

/// Transaction context marker.
/// Full implementation with actual DB connections in Phase 4.
#[derive(Debug)]
pub struct TransactionContext {
    pub(crate) options: TransactionOptions,
}

impl TransactionContext {
    pub fn new(options: TransactionOptions) -> Self {
        Self { options }
    }

    pub fn is_rollback_only(&self) -> bool {
        self.options.rollback_only
    }
}
