Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aaPanel/BaoTa
/ get_db_obj
Function
get_db_obj
script/init_db.py:21–24 ·
view source on GitHub ↗
(sfile)
Source
from the content-addressed store, hash-verified
19
ERR_INFO = None
20
# 获取数据库对象
21
def
get_db_obj(sfile):
22
db_obj = db.Sql()
23
db_obj.dbfile(sfile)
24
return
db_obj
25
26
27
default_db_obj = get_db_obj(os.path.join(panelPath,
"data/default.db"
))
Callers
8
init_db.py
File · 0.85
sync_db_table
Function · 0.85
repair_db
Function · 0.85
get_data_obj
Function · 0.85
get_sql_shell
Function · 0.85
test_sql
Function · 0.85
repair_lack_field
Function · 0.85
check_default_error
Function · 0.85
Calls
1
dbfile
Method · 0.95
Tested by
1
test_sql
Function · 0.68