-
-
Notifications
You must be signed in to change notification settings - Fork 115
impr + fix/migrations, embedding macro, optional paramas #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…into lazy-migrations
…lix-db into builtin-endpoints
…into builtin-endpoints + fix issues with handling macros
## Description <!-- Provide a brief description of the changes in this PR --> adding optional params to hql defined by `?` just like in type script e.g. ```js QUERY (username?: String) => .... ``` ## Related Issues <!-- Link to any related issues using #issue_number --> Closes # ## Checklist when merging to main <!-- Mark items with "x" when completed --> - [ ] No compiler warnings (if applicable) - [ ] Code is formatted with `rustfmt` - [ ] No useless or dead code (if applicable) - [ ] Code is easy to understand - [ ] Doc comments are used for all functions, enums, structs, and fields (where appropriate) - [ ] All tests pass - [ ] Performance has not regressed (assuming change was not to fix a bug) - [ ] Version number has been updated in `helix-cli/Cargo.toml` and `helixdb/Cargo.toml` - [ ] Lines are kept under 100 characters where possible - [ ] Code is good ## Additional Notes <!-- Add any additional information that would be helpful for reviewers -->
…rom id (#325) ## Description <!-- Provide a brief description of the changes in this PR --> added v from id merging migration hql syntax and rust generation and internal implementation fixing updating and deleting secondary indexes ## Related Issues <!-- Link to any related issues using #issue_number --> Closes # ## Checklist when merging to main <!-- Mark items with "x" when completed --> - [ ] No compiler warnings (if applicable) - [ ] Code is formatted with `rustfmt` - [ ] No useless or dead code (if applicable) - [ ] Code is easy to understand - [ ] Doc comments are used for all functions, enums, structs, and fields (where appropriate) - [ ] All tests pass - [ ] Performance has not regressed (assuming change was not to fix a bug) - [ ] Version number has been updated in `helix-cli/Cargo.toml` and `helixdb/Cargo.toml` - [ ] Lines are kept under 100 characters where possible - [ ] Code is good ## Additional Notes <!-- Add any additional information that would be helpful for reviewers -->
## Description <!-- Provide a brief description of the changes in this PR --> ## Related Issues <!-- Link to any related issues using #issue_number --> Closes # ## Checklist when merging to main <!-- Mark items with "x" when completed --> - [ ] No compiler warnings (if applicable) - [ ] Code is formatted with `rustfmt` - [ ] No useless or dead code (if applicable) - [ ] Code is easy to understand - [ ] Doc comments are used for all functions, enums, structs, and fields (where appropriate) - [ ] All tests pass - [ ] Performance has not regressed (assuming change was not to fix a bug) - [ ] Version number has been updated in `helix-cli/Cargo.toml` and `helixdb/Cargo.toml` - [ ] Lines are kept under 100 characters where possible - [ ] Code is good ## Additional Notes <!-- Add any additional information that would be helpful for reviewers -->
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements improvements to migrations, adds an embedding macro for model annotations, and introduces optional parameter functionality. The changes enhance the framework's ability to handle schema evolution, model integration, and flexible API design.
Key changes:
- Implementation of migration functionality with schema versioning support
- Addition of embedding macro for annotating queries with model information
- Optional parameter support in query functions
- Enhanced type casting and value conversion capabilities
Reviewed Changes
Copilot reviewed 64 out of 65 changed files in this pull request and generated 7 comments.
Show a summary per file
File | Description |
---|---|
hql-tests/file59/schema.hx | Migrated from commented schema to explicit versioned schemas with migration definition |
hql-tests/file57/schema.hx | Added vector-based clinical note schema definition |
hql-tests/file57/file57.hx | Implemented embedding-annotated queries for clinical note operations |
hql-tests/file56/output.json | Removed large JSON output file content |
hql-tests/file56/file56.hx | Added optional parameter support to search query |
hql-tests/file51/schema.hx | Expanded schema with user relationships and versioning |
hql-tests/file51/migrations.hx | Added migration definition between schema versions |
helix-macros/src/lib.rs | Implemented migration macro for schema transition handling |
helix-db/src/utils/items.rs | Added version field to Node and Edge structs |
helix-db/src/utils/id.rs | Enhanced ID type with additional conversion methods |
helix-db/src/protocol/value.rs | Extensive type casting and value conversion improvements |
helix-db/src/protocol/date.rs | Added error handling for date operations |
Description
migrations, embedding macro, optional paramas
Related Issues
Closes #
Checklist when merging to main
rustfmt
helix-cli/Cargo.toml
andhelixdb/Cargo.toml
Additional Notes