Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.