删除配置
(self, key: str)
| 864 | return self._config_cache.copy() |
| 865 | |
| 866 | async def delete_config(self, key: str) -> bool: |
| 867 | """删除配置""" |
| 868 | self._ensure_initialized() |
| 869 | |
| 870 | try: |
| 871 | async with self._pool.acquire() as conn: |
| 872 | await conn.execute("DELETE FROM config WHERE key = $1", key) |
| 873 | |
| 874 | self._config_cache.pop(key, None) |
| 875 | return True |
| 876 | |
| 877 | except Exception as e: |
| 878 | log.error(f"Error deleting config {key}: {e}") |
| 879 | return False |
| 880 | |
| 881 | async def get_credential_errors(self, filename: str, mode: str = "geminicli") -> Dict[str, Any]: |
| 882 | """获取凭证的错误信息""" |
nothing calls this directly
no test coverage detected