MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / get_db_config

Function get_db_config

core/database.py:18–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def get_db_config() -> dict:
19 return {
20 "connections": {
21 "default": {
22 "engine": "tortoise.backends.sqlite",
23 "credentials": {
24 "file_path": _DB_FILE,
25 "journal_mode": "WAL",
26 "busy_timeout": 10000,
27 "foreign_keys": "ON",
28 },
29 }
30 },
31 "apps": {
32 "models": {
33 "models": ["apps.base.models"],
34 "default_connection": "default",
35 }
36 },
37 "use_tz": False,
38 "timezone": "Asia/Shanghai",
39 }
40
41
42def _lock_file(file_obj: IO[str]) -> None:

Callers 2

main.pyFile · 0.90
init_dbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected