Skip to content
This repository was archived by the owner on Jul 31, 2026. It is now read-only.

feat: complete strict sql typing integration via executor traits - #6

Closed
venelouis wants to merge 1 commit into
devfrom
dev-8707706796972618999
Closed

venelouis wants to merge 1 commit into
devfrom
dev-8707706796972618999

Conversation

@venelouis

Copy link
Copy Markdown
Member
  • Refactored rust-eloquent-macros (models.rs, builder.rs) to use rust_eloquent::EloquentDatabase instead of hardcoding sqlx::Any.
  • Created QueryResultExt trait inside rust-eloquent/src/database.rs to dynamically infer and bind the last_insert_id() implementation logic required by MySQL and SQLite, skipping it for Postgres.
  • Fixed the generic JSON Wrapper (Json<T>) logic by leveraging sqlx::types::Json built-in feature to prevent trait implementation orphan rules and strict type boundaries.
  • Refined the V2 roadmap documenting that AST executor injection avoids offline-macro dependencies, keeping the framework easy to run on CI.

- Refactored `rust-eloquent-macros` (models.rs, builder.rs) to use `rust_eloquent::EloquentDatabase` instead of hardcoding `sqlx::Any`.
- Created `QueryResultExt` trait inside `rust-eloquent/src/database.rs` to dynamically infer and bind the `last_insert_id()` implementation logic required by MySQL and SQLite, skipping it for Postgres.
- Fixed the generic JSON Wrapper (`Json<T>`) logic by leveraging `sqlx::types::Json` built-in feature to prevent trait implementation orphan rules and strict type boundaries.
- Refined the V2 roadmap documenting that AST executor injection avoids offline-macro dependencies, keeping the framework easy to run on CI.

Co-authored-by: venelouis <37526748+venelouis@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 28, 2026 17:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@venelouis venelouis closed this May 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants