Get proxy configuration
(self)
| 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, |
no test coverage detected