()
| 235 | } |
| 236 | |
| 237 | func (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 | |
| 251 | func (db *DB) Compact() error { |
| 252 | return db.db.CompactRange(util.Range{ |
nothing calls this directly
no outgoing calls
no test coverage detected