Does this do what you are looking for?
https://docs.sqlalchemy.org/en/20/orm/session_transaction.ht...
It's the backing DBMS that will enforce atomicity. Postgres and sqlite allow the semantics of nested transactions with SAVEPOINTs (I don't know about other RDBMSes).
I found https://github.com/sqlalchemy/sqlalchemy/discussions/7336#di..., then I added list support by checking the type of kw[key].
something like https://gorm.io/docs/update.html#Update-from-SubQuery ?
Does this do what you are looking for?
https://docs.sqlalchemy.org/en/20/orm/session_transaction.ht...
It's the backing DBMS that will enforce atomicity. Postgres and sqlite allow the semantics of nested transactions with SAVEPOINTs (I don't know about other RDBMSes).