Files
theZoo/imports/db_handler.py
Jatin 0d42858c12 Fix db_handler.py
- Removed invalid 'python' line causing NameError at runtime
- Rewrote DBHandler to use context managers for safer database operations
- Switched to parameterized queries to prevent SQL injection
- Added PRAGMA optimizations for better SQLite performance (WAL, cache)
- Replaced print statements with structured logging
- Added type hints for readability and maintainability
- Preserves full compatibility with theZoo existing database schema
2025-06-24 22:43:46 +05:30

4.7 KiB