Multiple DB API backend support.
A DB backend module should implement a method named ‘get_backend’ which takes no arguments. The method can return any object that implements DB API methods.
Bases: object
Enable db-retry for decorated function, if config option enabled.
Bases: object
Retry db.api methods, if DBConnectionError() raised
Retry decorated db.api methods. If we enabled use_db_reconnect in config, this decorator will be applied to all db.api functions, marked with @safe_for_db_retry decorator. Decorator catchs DBConnectionError() and retries function in a loop until it succeeds, or until maximum retries count will be reached.
DB related custom exceptions.
Bases: keystone.openstack.common.db.exception.DBError
Wraps connection specific exception.
Bases: keystone.openstack.common.db.exception.DBError
Wraps an implementation specific exception.
Bases: exceptions.Exception
Wraps an implementation specific exception.
Bases: exceptions.Exception
Bases: keystone.openstack.common.db.exception.DBError
Wraps migration specific exception.
Returns a list of oslo.config options available in the library.
The returned list includes all oslo.config options which may be registered at runtime by the library.
Each element of the list is a tuple. The first element is the name of the group under which the list of elements in the second element will be registered. A group name of None corresponds to the [DEFAULT] group in config files.
The purpose of this is to allow tools like the Oslo sample config file generator to discover the options exposed to users by this library.
Returns: | a list of (group_name, opts) tuples |
---|