MCPcopy Create free account
hub / github.com/bnjbvr/trinity / write_str

Function write_str

src/admin_table.rs:71–73  ·  view source on GitHub ↗

Same as [`write`], but for a string ref.

(db: &ShareableDatabase, key: &str, value: &str)

Source from the content-addressed store, hash-verified

69
70/// Same as [`write`], but for a string ref.
71pub fn write_str(db: &ShareableDatabase, key: &str, value: &str) -> anyhow::Result<()> {
72 write(db, key, value.as_bytes())
73}
74
75/// Same as [`write`], but for a u64.
76pub fn write_u64(db: &ShareableDatabase, key: &str, value: u64) -> anyhow::Result<()> {

Callers 1

runFunction · 0.85

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected