Skip to content

Merge from main - #28

Open
MNSBaanu wants to merge 7 commits into
mainfrom
main
Open

Merge from main#28
MNSBaanu wants to merge 7 commits into
mainfrom
main

Conversation

@MNSBaanu

Copy link
Copy Markdown

No description provided.

github-classroom Bot and others added 7 commits March 28, 2026 20:05
- Update @babel/code-frame from 7.29.0 to 7.29.7
- Update @babel/compat-data from 7.29.3 to 7.29.7
- Update @babel/core from 7.29.0 to 7.29.7
- Update @babel/generator from 7.29.1 to 7.29.7
- Update @babel/helper-compilation-targets from 7.28.6 to 7.29.7
- Update @babel/helper-globals from 7.28.0 to 7.29.7
- Update @babel/helper-module-imports from 7.28.6 to 7.29.7
- Update @babel/helper-module-transforms from 7.28.6 to 7.29.7
- Update @babel/helper-string-parser from 7.27.1 to 7.29.7
- Update all corresponding @babel package peer dependencies to maintain consistency
- Import testBase module from test directory for database reset functionality
- Enable test database reset capability during initialization
- Prepare foundation for test database management in backend initialization flow
…tatements

- Replace dummy SELECT queries with proper teacher table operations in readTeachers, readTeacherInfo, addTeacher, updateTeacher, and deleteTeacher functions
- Add WHERE clause to readTeacherInfo to filter by teacher id
- Parameterize all SQL statements to prevent SQL injection vulnerabilities
- Update INSERT, UPDATE, and DELETE operations to pass values as query parameters
- Standardize response format for write operations (INSERT, UPDATE, DELETE) to return status objects
- Fix parameter passing in raw queries from no parameters to proper parameter arrays
…tabase module

- Rename generic `data` variables to descriptive names (`teachers`, `teacher`) in readTeachers and readTeacherInfo functions for clarity
- Remove spaces around `=` operators in updateTeacher SQL query for consistency
- Reorganize module exports alphabetically by function type (teacher operations first, then student operations)
- Enhance code readability and maintainability through better naming conventions
…tatements

- Fix readStudents() to query correct table (student instead of dummyData)
- Fix readStudentInfo() to use parameterized query with id parameter
- Fix addStudent() to use INSERT statement with parameterized values instead of SELECT
- Fix updateStudent() to use UPDATE statement with parameterized values and replace religion parameter with hometown
- Fix deleteStudent() to use DELETE statement with parameterized id parameter
- Improve variable naming (data → students/student) for clarity
- Update response messages for insert, update, and delete operations
- Export all student CRUD functions in module.exports
- Ensure all SQL queries use parameterized statements to prevent SQL injection
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.

1 participant