ROADMAP v0.4.0 - Configurable runtime validation for different enforcement modes
(
catalog_manager: Arc<RwLock<CatalogManager>>,
config: SchemaEnforcementConfig,
)
| 39 | /// Create with specific enforcement configuration |
| 40 | #[allow(dead_code)] // ROADMAP v0.4.0 - Configurable runtime validation for different enforcement modes |
| 41 | pub fn with_config( |
| 42 | catalog_manager: Arc<RwLock<CatalogManager>>, |
| 43 | config: SchemaEnforcementConfig, |
| 44 | ) -> Self { |
| 45 | let schema_validator = SchemaValidator::new(catalog_manager.clone()); |
| 46 | Self { |
| 47 | catalog_manager, |
| 48 | schema_validator, |
| 49 | enforcement_config: config, |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | /// Validate INSERT operation before execution (synchronous) |
| 54 | pub fn validate_insert( |