How noorsacademy/student-management-mysql works
This is a small interactive student-management CLI backed by MySQL. The user selects an operation in the menu; the entry point initializes the database, then dispatches add, view, search, update, or delete actions. Setup and student operations obtain connections through a shared helper, while the operations perform their own SQL. City search is currently a placeholder. The tree omits the imported db_config.py, so the configuration dependency cannot be mapped to a repository node.
Main entry points: main.py Interactive menu · db_connection.py Connection helper · student_operations.py Add student · setup_database.py Database setup
Components 10
CLI entry
- Interactive menu
main.py
Student operations
- Add student
student_operations.py - View students
student_operations.py - City search placeholder
student_operations.py - Update student
student_operations.py - Delete student
student_operations.py
Persistence
- Database setup
setup_database.py - Connection helper
db_connection.py
Other components
- User
- MySQL database
Connections 18
- User → Interactive menu: selects actions
main.py - Interactive menu → Database setup: initializes schema
main.py - Interactive menu → Add student: dispatches
main.py - Interactive menu → View students: dispatches
main.py - Interactive menu → City search placeholder: dispatches
main.py - Interactive menu → Update student: dispatches
main.py - Interactive menu → Delete student: dispatches
main.py - Database setup → Connection helper: gets connection
setup_database.py - Add student → Connection helper: gets connection
student_operations.py - View students → Connection helper: gets connection
student_operations.py - Update student → Connection helper: gets connection
student_operations.py - Delete student → Connection helper: gets connection
student_operations.py - Connection helper → MySQL database: opens connection
db_connection.py - Database setup → MySQL database: creates schema
setup_database.py - Add student → MySQL database: inserts student
student_operations.py - View students → MySQL database: queries students
student_operations.py - Update student → MySQL database: updates student
student_operations.py - Delete student → MySQL database: queries and deletes
student_operations.py