Powerful & expressive ORM/query-builder/static checker for raw queries/Fully Automated migration tooling , designed to offer an intuitive API, strict type-checking, novel features, & full specification support. It provides a fresh perspective in data management. Currently supports SurrealDB engine. RDMSs(PG, MYSQL etc) and others coming soon
85
stars
2
forks
source link
33 Support for additional statements and query enhancements: support statements continue break throw show live select remove function remove analyzer #34
This PR introduces various enhancements and new features to the surreal-orm query builder. A slew of new statement types have been implemented, offering a richer query construction layer. The changes ensure that the library is more extensible, maintainable, and user-friendly.
Features
Statement Support: New support for BREAK, CONTINUE, LIVE SELECT, REMOVE ANALYZER, REMOVE FUNCTION, REMOVE PARAM, and SHOW CHANGES statements.
Query Building Improvements: Changes in query-builder/src/functions/search.rs to improve query build logic.
Code Cleanup: Refactoring in various files to improve readability and maintainability.
Changes
query-builder/src/functions/search.rs: Renamed search_highlight_fn to highlight_fn and updated corresponding tests.
query-builder/src/statements/for_loop.rs: Various formatting and naming changes for better readability.
Description
This PR introduces various enhancements and new features to the
surreal-orm
query builder. A slew of new statement types have been implemented, offering a richer query construction layer. The changes ensure that the library is more extensible, maintainable, and user-friendly.Features
query-builder/src/functions/search.rs
to improve query build logic.Changes
query-builder/src/functions/search.rs
: Renamedsearch_highlight_fn
tohighlight_fn
and updated corresponding tests.query-builder/src/statements/for_loop.rs
: Various formatting and naming changes for better readability.break_.rs
,continue_.rs
,live_select.rs
,remove_analyzer.rs
,remove_function.rs
,remove_param.rs
,show.rs
query-builder/src/statements/mod.rs
: Included the newly added statement types in the module tree and public API.Test Coverage
search.rs
andfor_loop.rs
to reflect the changes.Backward Compatibility
Checklist
Reviewers
Files Changed
query-builder/src/functions/search.rs
query-builder/src/statements/break_.rs
query-builder/src/statements/continue_.rs
query-builder/src/statements/for_loop.rs
query-builder/src/statements/live_select.rs
query-builder/src/statements/remove_analyzer.rs
query-builder/src/statements/remove_function.rs
query-builder/src/statements/remove_param.rs
query-builder/src/statements/show.rs
query-builder/src/statements/mod.rs