MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / begin_write

Method begin_write

nodedb/src/engine/sparse/btree.rs:317–321  ·  view source on GitHub ↗

Begin a write transaction on the underlying database.

(&self)

Source from the content-addressed store, hash-verified

315
316 /// Begin a write transaction on the underlying database.
317 pub fn begin_write(&self) -> crate::Result<WriteTransaction> {
318 self.db
319 .begin_write()
320 .map_err(|e| redb_err("begin write txn", e))
321 }
322
323 /// Get the underlying database handle.
324 pub fn db(&self) -> &Arc<Database> {

Callers 15

openMethod · 0.80
appendMethod · 0.80
truncateMethod · 0.80
compactMethod · 0.80
save_hard_stateMethod · 0.80
temp_dbFunction · 0.80
upsertMethod · 0.80
removeMethod · 0.80
temp_dbFunction · 0.80
save_topologyMethod · 0.80
save_routingMethod · 0.80

Calls 1

redb_errFunction · 0.70

Tested by 2

temp_dbFunction · 0.64