feat: support psycopg (#425)

This commit is contained in:
Waket Zheng
2025-02-26 17:11:31 +08:00
committed by GitHub
parent 0364ae3f83
commit 49bfbf4e6b
10 changed files with 218 additions and 26 deletions

View File

@@ -22,7 +22,9 @@ toml = [
"tomli-w (>=1.1.0,<2.0.0); python_version >= '3.11'",
"tomlkit (>=0.11.4,<1.0.0); python_version < '3.11'",
]
# Need asyncpg or psyncopg for PostgreSQL
asyncpg = ["asyncpg"]
psycopg = ["psycopg[pool,binary] (>=3.0.12,<4.0.0)"]
# Need asyncmy or aiomysql for MySQL
asyncmy = ["asyncmy>=0.2.9; python_version < '4.0'"]
mysql = ["aiomysql>=0.2.0"]