Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
30
func
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
40
func
(this *SQLiteDB) Init() error {
41
// 检查目录是否存在
Callers
2
TestNewManager
Function · 0.92
loadDB
Method · 0.85
Calls
2
OnClose
Function · 0.92
Close
Method · 0.65
Tested by
1
TestNewManager
Function · 0.74