Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenAtomFoundation/SmartIDE
/ getDb
Function
getDb
cli/internal/dal/init.go:29–36 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
)
28
29
func
getDb() *sql.DB {
30
dbInit()
31
32
db, err := connection()
33
common.CheckError(err)
34
35
return
db
36
}
37
38
// 创建数据库表
39
func
createDataTables() {
Callers
13
GetK8sInfoList
Function · 0.85
RemoveK8s
Function · 0.85
InsertOrUpdateK8sInfo
Function · 0.85
GetK8sInfo
Function · 0.85
InsertOrUpdateWorkspace
Function · 0.85
GetWorkspaceList
Function · 0.85
GetSingleWorkspaceByParams
Function · 0.85
GetSingleWorkspace
Function · 0.85
RemoveWorkspace
Function · 0.85
GetRemoteList
Function · 0.85
RemoveRemote
Function · 0.85
InsertOrUpdateRemote
Function · 0.85
Calls
2
dbInit
Function · 0.85
connection
Function · 0.85
Tested by
no test coverage detected