Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tron521/codex-console-temp
/ get_db
Function
get_db
src/database/session.py:375–384 ·
view source on GitHub ↗
获取数据库会话的快捷函数
()
Source
from the content-addressed store, hash-verified
373
374
@contextmanager
375
def
get_db() -> Generator[Session, None, None]:
376
""
"
377
获取数据库会话的快捷函数
378
""
"
379
manager = get_session_manager()
380
db = manager.SessionLocal()
381
try
:
382
yield
db
383
finally:
384
db.close()
Callers
15
get_auto_registration_inventory
Function · 0.85
_log
Method · 0.85
_submit_login_password
Method · 0.85
_mark_email_as_registered
Method · 0.85
save_to_database
Method · 0.85
_load_state
Function · 0.85
_save_state
Function · 0.85
_resolve_selfcheck_proxy_url
Function · 0.85
_check_accounts_auth
Function · 0.85
_check_payment_pipeline
Function · 0.85
_check_data_consistency
Function · 0.85
create_selfcheck_run
Function · 0.85
Calls
2
get_session_manager
Function · 0.85
close
Method · 0.45
Tested by
7
test_email_service
Function · 0.68
test_proxy_item
Function · 0.68
test_all_proxies
Function · 0.68
test_codex2api_service
Function · 0.68
test_sub2api_service
Function · 0.68
test_cpa_service
Function · 0.68
test_new_api_service
Function · 0.68