MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / with_config

Method with_config

graphlite/src/schema/integration/runtime_validator.rs:41–51  ·  view source on GitHub ↗

ROADMAP v0.4.0 - Configurable runtime validation for different enforcement modes

(
        catalog_manager: Arc<RwLock<CatalogManager>>,
        config: SchemaEnforcementConfig,
    )

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected