MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / append

Method append

crates/core/src/database_logger.rs:86–89  ·  view source on GitHub ↗
(&mut self, ts: chrono::DateTime<Utc>, record: Bytes)

Source from the content-addressed store, hash-verified

84
85impl Logger for FileLogger {
86 fn append(&mut self, ts: chrono::DateTime<Utc>, record: Bytes) {
87 self.maybe_rotate(ts.date_naive());
88 self.file.write_all(&record).unwrap();
89 }
90
91 fn size(&self) -> io::Result<u64> {
92 self.file.metadata().map(|stat| stat.len())

Callers 2

openMethod · 0.45
runMethod · 0.45

Calls 8

maybe_rotateMethod · 0.80
push_backMethod · 0.80
compactMethod · 0.80
sendMethod · 0.65
asyncifyFunction · 0.50
unwrapMethod · 0.45
lenMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected