//! Trigger-related validation and coordination
use Database;
use crate::;
/// Validate that a table has no DELETE triggers
///
/// Used by both RESTRICT and CASCADE modes to ensure triggers won't be violated.
///
/// # Arguments
///
/// * `database` - The database containing the table
/// * `table_name` - The table to check
/// * `root_table` - The original table being truncated (for error messages)
///
/// # Errors
///
/// Returns error if table has DELETE triggers