Skip to content

Conversation

ProblemShooter
Copy link
Contributor

This PR refactors the SQLite database code into a clean, class-based structure using DatabaseManager.

Key changes:

  • Removed global variables (conn, cur, acc_no).
  • Added generic update functions for customers and staff.
  • Optimized account number tracking with MAX(acc_no).
  • Improved maintainability, readability, and safety.
  • Added close() method for proper database cleanup.

No external dependencies required; functionality for admin, staff, and customer management remains intact.

@geekcomputers geekcomputers merged commit 1d0eece into geekcomputers:master Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants