shahar1 commented on code in PR #68496:
URL: https://github.com/apache/airflow/pull/68496#discussion_r3523353168
##########
airflow-core/src/airflow/settings.py:
##########
@@ -241,7 +241,11 @@ def load_policy_plugins(pm: pluggy.PluginManager):
def _get_async_conn_uri_from_sync(sync_uri):
- AIO_LIBS_MAPPING = {"sqlite": "aiosqlite", "postgresql": "asyncpg",
"mysql": "aiomysql"}
+ AIO_LIBS_MAPPING = {
+ "sqlite": "aiosqlite",
+ "postgresql": "psycopg_async" if _USE_PSYCOPG3 else "asyncpg",
+ "mysql": "aiomysql",
+ }
"""Mapping of sync scheme to async scheme."""
Review Comment:
I support making it a online comment (`# ...`) above the mapping definition.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]