Oyelowo / surreal-orm

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

Closed Oyelowo closed 11 months ago

Oyelowo commented 11 months ago

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

  1. Statement Support: New support for BREAK, CONTINUE, LIVE SELECT, REMOVE ANALYZER, REMOVE FUNCTION, REMOVE PARAM, and SHOW CHANGES statements.
  2. Query Building Improvements: Changes in query-builder/src/functions/search.rs to improve query build logic.
  3. Code Cleanup: Refactoring in various files to improve readability and maintainability.

Changes

  1. query-builder/src/functions/search.rs: Renamed search_highlight_fn to highlight_fn and updated corresponding tests.
  2. query-builder/src/statements/for_loop.rs: Various formatting and naming changes for better readability.
  3. Added new statement files: break_.rs, continue_.rs, live_select.rs, remove_analyzer.rs, remove_function.rs, remove_param.rs, show.rs
  4. query-builder/src/statements/mod.rs: Included the newly added statement types in the module tree and public API.

Test Coverage

Backward Compatibility

Checklist

Reviewers


Files Changed