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

Method NewSnapshot

driver/oss/db.go:328–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326}
327
328func (db *DB) NewSnapshot() (driver.ISnapshot, error) {
329 snapshot, err := db.db.GetSnapshot()
330 if err != nil {
331 return nil, err
332 }
333
334 s := &Snapshot{
335 db: db,
336 snp: snapshot,
337 }
338
339 return s, nil
340}
341
342func (db *DB) Compact() error {
343 return db.db.CompactRange(util.Range{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected