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

Method new

graphlite/src/txn/wal.rs:85–102  ·  view source on GitHub ↗

Create a new WAL entry

(
        entry_type: WALEntryType,
        transaction_id: TransactionId,
        global_sequence: u64,
        txn_sequence: u64,
        operation_type: Option<OperationType>,
        description: 

Source from the content-addressed store, hash-verified

83impl WALEntry {
84 /// Create a new WAL entry
85 pub fn new(
86 entry_type: WALEntryType,
87 transaction_id: TransactionId,
88 global_sequence: u64,
89 txn_sequence: u64,
90 operation_type: Option<OperationType>,
91 description: String,
92 ) -> Self {
93 Self {
94 entry_type,
95 transaction_id,
96 global_sequence,
97 txn_sequence,
98 timestamp: SystemTime::now(),
99 operation_type,
100 description,
101 }
102 }
103
104 /// Check if this entry affects the catalog
105 pub fn affects_catalog(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected