utils module
- utils.get_db_engine(config_file: str, db_name=None) Engine [source]
Create a SQLAlchemy Engine instance based on the config file
- Parameters:
config_file (str) – Path to the config file
db_name (str, optional) – Name of the database to connect to. Defaults to None.
- Returns:
SQLAlchemy Engine instance for the database
- Return type:
sqlalchemy.engine.base.Engine