blob: 2d10a05f4c93793c717beff9cb9b4b77013e3d22 [file] [log] [blame]
Susanta Gautam7bfec4f2021-04-16 16:22:14 +05451"""Base classes for storage engines"""
Susanta Gautam7bfec4f2021-04-16 16:22:14 +05452from oslo_config import cfg
3from oslo_db import api as db_api
4
Susanta Gautam73a52bb2021-04-27 16:01:11 +05455_BACKEND_MAPPING = {"sqlalchemy": "staffeln.db.sqlalchemy.api"}
6IMPL = db_api.DBAPI.from_config(cfg.CONF, backend_mapping=_BACKEND_MAPPING, lazy=True)
Susanta Gautam7bfec4f2021-04-16 16:22:14 +05457
8
9def get_instance():
10 """Return a DB API instance."""
11 return IMPL