oslo.db/oslo_db
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
..
sqlalchemy Improve failure mode handling in enginefacade 2015-07-27 19:02:41 +03:00
tests Improve failure mode handling in enginefacade 2015-07-27 19:02:41 +03:00
__init__.py Move files out of the namespace package 2014-12-24 13:28:48 +02:00
_i18n.py Switch to non-namespaced module import - oslo_i18n 2015-03-12 06:44:10 -04:00
api.py Allow additional exceptions in wrap_db_retry 2015-06-25 11:36:35 -07:00
concurrency.py Update Oslo imports to remove namespace package 2015-01-21 18:23:56 -05:00
exception.py Improve failure mode handling in enginefacade 2015-07-27 19:02:41 +03:00
options.py Merge "Retry query if db deadlock error is received" 2015-01-27 15:33:15 +00:00