oslo.db/oslo_db/sqlalchemy
Mike Bayer 7daffffafc Add support for pickling enginefacade context objects
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
2015-09-22 13:45:58 -04:00
..
compat Remove pre-SQLAlchemy-0.9.7 compat utilities 2015-04-28 10:56:05 -04:00
migration_cli Merge "Assume relative revisions belong to alembic" 2015-08-20 15:03:15 +00:00
__init__.py Move files out of the namespace package 2014-12-24 13:28:48 +02:00
enginefacade.py Add support for pickling enginefacade context objects 2015-09-22 13:45:58 -04:00
engines.py Handle case where oslo_db.tests has not been imported 2015-09-08 23:20:26 -07:00
exc_filters.py Added catching of errors 1047 (Galera) for MySQL oslo db reconnect 2015-07-14 14:32:29 -04:00
migration.py Sanity check after migration 2015-04-10 15:25:56 +03:00
models.py Fix sqlalchemy.ModelBase.__contains__() behaviour 2015-06-26 19:02:53 +03:00
orm.py Implement new oslo.db.sqlalchemy.enginefacade module 2015-06-04 11:43:39 -04:00
provision.py Switch from MySQL-python to PyMySQL 2015-06-18 15:42:23 +03:00
session.py Drop use of 'oslo' namespace package 2015-06-18 22:18:36 +00:00
test_base.py Fix exception message about unavailable backend 2015-08-18 17:50:01 +03:00
test_migrations.py Fix test_migrations on Python 3 2015-07-28 12:50:04 +02:00
types.py Add JSON-encoded types for sqlalchemy 2015-08-03 14:56:49 +02:00
update_match.py Implement generic update-on-match feature 2015-03-05 14:06:59 +00:00
utils.py pagination: enhance sorting of null values 2015-08-06 07:46:47 +02:00