MCPcopy 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

19ERR_INFO = None
20# 获取数据库对象
21def get_db_obj(sfile):
22 db_obj = db.Sql()
23 db_obj.dbfile(sfile)
24 return db_obj
25
26
27default_db_obj = get_db_obj(os.path.join(panelPath, "data/default.db"))

Callers 8

init_db.pyFile · 0.85
sync_db_tableFunction · 0.85
repair_dbFunction · 0.85
get_data_objFunction · 0.85
get_sql_shellFunction · 0.85
test_sqlFunction · 0.85
repair_lack_fieldFunction · 0.85
check_default_errorFunction · 0.85

Calls 1

dbfileMethod · 0.95

Tested by 1

test_sqlFunction · 0.68