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

Function delete_proxy

src/database/crud.py:611–620  ·  view source on GitHub ↗

删除代理配置

(db: Session, proxy_id: int)

Source from the content-addressed store, hash-verified

609
610
611def delete_proxy(db: Session, proxy_id: int) -> bool:
612 """删除代理配置"""
613 db_proxy = get_proxy_by_id(db, proxy_id)
614 if not db_proxy:
615 return False
616
617 db.delete(db_proxy)
618 db.commit()
619 _ensure_single_default_proxy(db)
620 return True
621
622
623def update_proxy_last_used(db: Session, proxy_id: int) -> bool:

Callers

nothing calls this directly

Calls 3

get_proxy_by_idFunction · 0.85
deleteMethod · 0.45

Tested by

no test coverage detected