MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / CleanAll

Method CleanAll

internal/caches/list_file_db_sqlite.go:408–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

406}
407
408func (this *SQLiteFileListDB) CleanAll() error {
409 if !this.isReady {
410 return nil
411 }
412
413 _, err := this.deleteAllStmt.Exec()
414 if err != nil {
415 return this.WrapError(err)
416 }
417
418 this.hashMap.Clean()
419
420 return nil
421}
422
423func (this *SQLiteFileListDB) Close() error {
424 if this.isClosed {

Callers

nothing calls this directly

Calls 3

WrapErrorMethod · 0.95
ExecMethod · 0.45
CleanMethod · 0.45

Tested by

no test coverage detected