MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / NewSnapshot

Method NewSnapshot

driver/ipfs-log/db.go:187–191  ·  view source on GitHub ↗

NewSnapshot creates a new snapshot of the database

()

Source from the content-addressed store, hash-verified

185
186// NewSnapshot creates a new snapshot of the database
187func (db *DB) NewSnapshot() (driver.ISnapshot, error) {
188 return &Snapshot{
189 db: db,
190 }, nil
191}
192
193// Compact is a no-op for this storage driver
194func (db *DB) Compact() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected