Skip to content

Migrate CrudOperations Macros to Use QueryBuilder #68

@TheRustifyer

Description

@TheRustifyer

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:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions