MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / CheckSQLiteDB

Function CheckSQLiteDB

internal/metrics/task_sqlite.go:76–80  ·  view source on GitHub ↗
(itemId int64)

Source from the content-addressed store, hash-verified

74}
75
76func CheckSQLiteDB(itemId int64) bool {
77 var path = Tea.Root + "/data/metric." + types.String(itemId) + ".db"
78 _, err := os.Stat(path)
79 return err == nil
80}
81
82// Init 初始化
83func (this *SQLiteTask) Init() error {

Callers 1

UpdateMethod · 0.85

Calls 2

StatMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected