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

Method NewSnapshot

driver/ipfs/db.go:237–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235}
236
237func (db *DB) NewSnapshot() (driver.ISnapshot, error) {
238 snapshot, err := db.db.GetSnapshot()
239 if err != nil {
240 return nil, err
241 }
242
243 s := &Snapshot{
244 db: db,
245 snp: snapshot,
246 }
247
248 return s, nil
249}
250
251func (db *DB) Compact() error {
252 return db.db.CompactRange(util.Range{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected