a7da49ee6f04cb918f97cbbd29c3094a1cca01bc
Implement MaterialsToDeleteDAO class with secure parameterized queries following the pattern established in Task 11 (commit 5aafb23). Features: - getMaterialsToDeleteByManagers(): Query materials_to_delete table with optional filtering by manager_names using parameterized queries - getAllMaterialsToDelete(): Wrapper to retrieve all materials without filtering Security: - Uses parameterized queries (@param0, @param1, etc.) to prevent SQL injection - Parameters passed separately from query string via executeSQLServerQuery() - Input validation for empty arrays - Comprehensive test coverage including SQL injection attempt scenarios Testing: - 11 comprehensive unit tests covering all methods and edge cases - Tests verify parameterized query pattern prevents SQL injection - All tests passing (12/12 including existing tests) Files: - src/main/dao/materials-to-delete.dao.ts: DAO implementation - tests/unit/dao/materials-to-delete.dao.test.ts: Unit tests Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
erpauto
An Electron application with React and TypeScript
Recommended IDE Setup
Project Setup
Install
$ npm install
Development
$ npm run dev
Build
# For windows
$ npm run build:win
# For macOS
$ npm run build:mac
# For Linux
$ npm run build:linux
Description
Languages
TypeScript
97.1%
JavaScript
2%
C#
0.4%
CSS
0.3%
TSQL
0.2%