7daffffafc
In order to pickle a context object which refers to an active _TransactionContextTLocal, we have to use __reduce__ so that no database, engine, or session state is pickled, and only a constructor remains. Upon unpickling, the constructor will install a new, empty _TransactionContextTLocal on the new context, as is appropriate since this is a totally different context object than the original one. Change-Id: Ia50cf10ff91a013ee24773c095a3df69ae06847b |
||
---|---|---|
.. | ||
compat | ||
migration_cli | ||
__init__.py | ||
enginefacade.py | ||
engines.py | ||
exc_filters.py | ||
migration.py | ||
models.py | ||
orm.py | ||
provision.py | ||
session.py | ||
test_base.py | ||
test_migrations.py | ||
types.py | ||
update_match.py | ||
utils.py |