()
| 326 | } |
| 327 | |
| 328 | func (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 | |
| 342 | func (db *DB) Compact() error { |
| 343 | return db.db.CompactRange(util.Range{ |
nothing calls this directly
no outgoing calls
no test coverage detected