(url: str)
| 31 | |
| 32 | |
| 33 | def _to_async_url(url: str) -> str: |
| 34 | if "+asyncpg" in url: |
| 35 | return url |
| 36 | if url.startswith("postgresql://"): |
| 37 | return url.replace("postgresql://", "postgresql+asyncpg://", 1) |
| 38 | return url |
| 39 | |
| 40 | |
| 41 | def _to_sync_url(url: str) -> str: |
no test coverage detected