Defines interface for DB access.
The underlying driver is loaded as a LazyPluggable.
Functions in this module are imported into the nova.virt.baremetal.db namespace. Call these functions from nova.virt.baremetal.db namespace, not the nova.virt.baremetal.db.api namespace.
All functions in this module return objects that implement a dictionary-like interface. Currently, many of these objects are sqlalchemy objects that implement a dictionary interface. However, a future goal is to have all of these objects be simple dictionaries.
Related Flags
baremetal_db_backend: | |
---|---|
string to lookup in the list of LazyPluggable backends. sqlalchemy is the only supported backend right now. | |
[BAREMETAL] sql_connection: | |
string specifying the sqlalchemy connection to use, like: sqlite:///var/lib/nova/nova.sqlite. |