-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Description:
To unify the generation of user queries and enhance maintainability, we should transition all query string constructions within the CrudOperations macros to utilize the QueryBuilder. This change will centralize SQL statement generation, making the macros more straightforward and the statements immediately testable.
Dependencies:
- Completion of Insert QueryBuilder #66: Create InsertQueryBuilder for SQL Insert Operations.
- Completion of Refactor QueryBuilder to Defer Database Connection Usage #67: Refactor QueyBuilder to Defer Database Connection Usage.
Tasks:
- Identify all instances within the CrudOperations macros where SQL query strings are manually constructed.
- Refactor these macros to leverage the QueryBuilder for SQL statement generation.
- Ensure that the refactored macros maintain their existing functionality and performance characteristics.
- Write or update unit tests to validate that the macros produce correct and efficient SQL statements using the QueryBuilder.
Expected Outcome:
A cohesive and maintainable codebase where CrudOperations macros utilize the QueryBuilder for SQL generation, leading to improved control over generated statements and easier testing.
Metadata
Metadata
Assignees
Labels
No labels