-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(query.go): restructure Query and related types for better cl…
…arity and flexibility 1. Refactor Query struct to include a new struct Q for better organization of fields. 2. Expand the Query struct's documentation for better understanding of its usage. 3. Refactor Option type to modify Query instead of builder. 4. Refactor New function to directly modify Query instead of using a builder. 5. Add Expand function to convert an aggregate.Query into a Query. 6. Refactor Merge function to combine multiple aggregate queries into a single query. 7. Refactor Name, ID, Version, SortBy, and SortByMulti functions to modify Query directly. 8. Refactor Tagger interface's documentation for better clarity. 9. Refactor Test function to filter an aggregate based on the provided aggregate query. 10. Add EventQueryOpts function to convert an aggregate.Query into a slice of query.Option. 11. Refactor Names, IDs, Versions, and Sortings functions to return fields from Q struct. test(query_test.go): update tests to reflect changes in query.go 1. Update TestNew and TestMerge tests to reflect changes in the Query struct and related functions.
- Loading branch information
Showing
2 changed files
with
154 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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