MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / get_proxy_by_id

Function get_proxy_by_id

src/database/crud.py:565–567  ·  view source on GitHub ↗

根据 ID 获取代理

(db: Session, proxy_id: int)

Source from the content-addressed store, hash-verified

563
564
565def get_proxy_by_id(db: Session, proxy_id: int) -> Optional[Proxy]:
566 """根据 ID 获取代理"""
567 return db.query(Proxy).filter(Proxy.id == proxy_id).first()
568
569
570def get_proxies(

Callers 3

update_proxyFunction · 0.85
delete_proxyFunction · 0.85
update_proxy_last_usedFunction · 0.85

Calls 3

firstMethod · 0.80
filterMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected