db_handler.py 567 B

12345678910111213141516171819202122
  1. import sqlite3
  2. from pathlib import Path
  3. class DatabaseHandler:
  4. def __init__(self, db_path="cell_data.db"):
  5. # add code for initializing database connection
  6. pass
  7. def get_cell_capacity_nom(self, cell_id):
  8. # add code for getting nominal cell capacity from database
  9. pass
  10. def get_cell_capacity(self, cell_id):
  11. # add code for getting cell capacity from database
  12. pass
  13. def update_cell_capacity(self, cell_id, estimated_capacity_mah):
  14. # add code for updating cell capacity in database
  15. pass