oslo.db/oslo_db/sqlalchemy
Mike Bayer d5f390f55c Improve failure mode handling in enginefacade
Check explicitly for the cases where no "sql_connection"
attribute was set when running _start(), so that the
lack of this parameter is documented by the
exception rather than failing into create_engine()
with an unclear failure mode.
If _start() fails as it will here, make sure _started
stays False so that repeated calls to _start() continue
to raise the same exception, rather than raising
attribute errors.  When accessing the "session" or
"connection" attributes of the context when these
attributes were not requested by the decorator or
context manager, raise explicit exceptions
for each, rather than returning None which leads to
hard-to-debug NoneType errors.

Change-Id: Iadfbf4707daed4140285a3a472009f6863b18275
Closes-bug: 1477080
2015-07-27 19:02:41 +03:00
..
compat Remove pre-SQLAlchemy-0.9.7 compat utilities 2015-04-28 10:56:05 -04:00
migration_cli Refactor database migration manager to use given engine 2015-01-27 19:12:16 +00:00
__init__.py Move files out of the namespace package 2014-12-24 13:28:48 +02:00
enginefacade.py Improve failure mode handling in enginefacade 2015-07-27 19:02:41 +03:00
engines.py Implement new oslo.db.sqlalchemy.enginefacade module 2015-06-04 11:43:39 -04:00
exc_filters.py Merge "exc_filters: support for ForeignKey error on delete" 2015-04-10 13:58:09 +00: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 Drop use of 'oslo' namespace package 2015-06-18 22:18:36 +00:00
test_migrations.py Allow projects that use test_models_sync to filter some changes 2015-07-01 14:54:19 +03:00
update_match.py Implement generic update-on-match feature 2015-03-05 14:06:59 +00:00
utils.py Remove oslo namespace package 2015-06-21 20:54:10 +00:00