pub trait WriteTracker: Send + Sync {
// Required methods
fn record_node_write(&self, transaction_id: TransactionId, node_id: NodeId);
fn record_edge_write(&self, transaction_id: TransactionId, edge_id: EdgeId);
}Expand description
Trait for recording write operations during query execution.
This bridges grafeo-core mutation operators (which perform writes) with
grafeo-engine’s TransactionManager (which tracks write sets for conflict
detection). The trait lives in grafeo-core to avoid circular dependencies.
Required Methods§
Sourcefn record_node_write(&self, transaction_id: TransactionId, node_id: NodeId)
fn record_node_write(&self, transaction_id: TransactionId, node_id: NodeId)
Records that a node was written (created, deleted, or modified).
Sourcefn record_edge_write(&self, transaction_id: TransactionId, edge_id: EdgeId)
fn record_edge_write(&self, transaction_id: TransactionId, edge_id: EdgeId)
Records that an edge was written (created, deleted, or modified).