MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / get_proxy_config

Method get_proxy_config

src/core/database.py:1364–1372  ·  view source on GitHub ↗

Get proxy configuration

(self)

Source from the content-addressed store, hash-verified

1362 await db.commit()
1363
1364 async def get_proxy_config(self) -> Optional[ProxyConfig]:
1365 """Get proxy configuration"""
1366 async with self._connect() as db:
1367 db.row_factory = aiosqlite.Row
1368 cursor = await db.execute("SELECT * FROM proxy_config WHERE id = 1")
1369 row = await cursor.fetchone()
1370 if row:
1371 return ProxyConfig(**dict(row))
1372 return None
1373
1374 async def update_proxy_config(
1375 self,

Callers 4

get_proxy_configFunction · 0.45
get_proxy_config_aliasFunction · 0.45

Calls 2

_connectMethod · 0.95
ProxyConfigClass · 0.85

Tested by

no test coverage detected