MCPcopy Create free account
hub / github.com/base/triedb / wipe

Method wipe

src/database.rs:74–77  ·  view source on GitHub ↗

Sets the option to erase the database if it gets successfully opened.

(&mut self, wipe: bool)

Source from the content-addressed store, hash-verified

72
73 /// Sets the option to erase the database if it gets successfully opened.
74 pub fn wipe(&mut self, wipe: bool) -> &mut Self {
75 self.wipe = wipe;
76 self
77 }
78
79 /// Specifies the path of the metadata file.
80 ///

Callers 2

open_with_optionsMethod · 0.45
test_wipeFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_wipeFunction · 0.36