Problem
database.py is 1279 lines with 50+ methods - difficult to maintain and test.
Refactor Proposal
Split into focused modules:
wikiaccess/database/
├── __init__.py
├── connection.py # Database connection management
├── schema.py # Schema creation and migrations
├── pages.py # Page operations
├── images.py # Image operations
├── links.py # Link operations
├── discovery.py # Discovery operations
├── accessibility.py # Accessibility operations
└── queries.py # Complex query builders
Benefits
- Easier to test in isolation
- Better code organization
- Easier to understand and modify
- Can use dependency injection
Tasks
Problem
database.pyis 1279 lines with 50+ methods - difficult to maintain and test.Refactor Proposal
Split into focused modules:
Benefits
Tasks