ashb commented on PR #48547: URL: https://github.com/apache/airflow/pull/48547#issuecomment-2778025365
> However, since SQLAlchemy ORM does not offer a DB-agnostic way to express upserts using these features, I believe the current approach—checking whether the variable exists and then choosing between update or add—is the most universal and reliable solution at the ORM level. It is already a well-established pattern in Airflow to have `if mysql`/`if postgres` branches. -- espeically as all three supported database have support for ON CONFLICT UPDATE -- 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]
