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

Function NewSQLiteDB

internal/utils/agents/db_sqlite.go:30–38  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

28}
29
30func NewSQLiteDB(path string) *SQLiteDB {
31 var db = &SQLiteDB{path: path}
32
33 events.OnClose(func() {
34 _ = db.Close()
35 })
36
37 return db
38}
39
40func (this *SQLiteDB) Init() error {
41 // 检查目录是否存在

Callers 2

TestNewManagerFunction · 0.92
loadDBMethod · 0.85

Calls 2

OnCloseFunction · 0.92
CloseMethod · 0.65

Tested by 1

TestNewManagerFunction · 0.74