flexeval.db_utils#
Peewee database utilities.
Functions
|
Utility function for binding to a FlexEval database so that ORM functionality can be used. |
|
- flexeval.db_utils.bind_to_database(database_path: str) Database [source]#
Utility function for binding to a FlexEval database so that ORM functionality can be used.
See: https://docs.peewee-orm.com/en/latest/peewee/database.html#setting-the-database-at-run-time
- Returns:
The new database created for the models to bind to.
- Return type:
pw.Database