UCM Engine
ucm-engine provides the transformation engine for applying operations to UCM documents. It handles the execution of UCL commands and manages document state changes.
Overview
UCM Engine is responsible for:
- Operation Execution - Applying transformations to documents
- Transaction Management - Atomic operations and rollback
- Snapshot Management - Document versioning and restoration
- Validation - Document integrity checking
- Performance Optimization - Efficient batch operations
Installation
[]
= "0.1"
Quick Example
use ;
use ;
Core Components
Engine
The main engine for executing operations:
use Engine;
let engine = new;
Operations
All document transformations are represented as operations:
- Edit - Modify block content
- Append - Add new blocks
- Move - Relocate blocks
- Delete - Remove blocks
- Link - Create relationships
- CreateSnapshot - Save document state
- RestoreSnapshot - Restore document state
Transactions
Group operations atomically:
use ;
let mut tx_manager = new;
let tx = tx_manager.begin;
// Execute operations...
tx.execute;
tx.execute;
// Commit or rollback
tx.commit.unwrap;
// or
tx.rollback.unwrap;
Public API
pub use Engine;
pub use ;
pub use ;
pub use ;
pub use ;
See Also
- Operations - All available operations
- Transactions - Transaction management
- Snapshots - Version control
- Validation - Document validation