Skip to content

Conversation

@NFUChen
Copy link
Contributor

@NFUChen NFUChen commented Jun 19, 2025

  • Refactored the query execution logic into QueryExecutionService to improve modularity and maintainability.
  • Updated documentation with detailed usage instructions and examples for the new decorator.
- Refactored the query execution logic into `QueryExecutionService` to improve modularity and maintainability. - Updated documentation with detailed usage instructions and examples for the new decorator.
…nd Modularity - Refactored the `execute_query` method to use class methods for better organization and clarity. - Introduced `_process_kwargs`, `_get_actual_type`, `_validate_return_type`, and `_process_single_result` methods to modularize logic and improve type safety. - Enhanced error handling for query results, ensuring clear exceptions are raised for invalid return types and missing results. - Updated type hints to include `Any` and `Optional` for better type inference.
@NFUChen NFUChen self-assigned this Jun 19, 2025
@NFUChen NFUChen merged commit b8ad9dc into main Jun 19, 2025
1 check passed
@NFUChen NFUChen deleted the refactor/query branch June 19, 2025 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants