Skip to content

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 17, 2025

Replace manual Queryable + Selectable + as_select() patterns with the HasQuery derive macro (introduced in diesel 2.3) across ~25 database models and query structs throughout the codebase.

This reduces boilerplate while maintaining the same functionality. The macro automatically implements the common pattern of table.select(Model::as_select()) as Model::query().

see https://diesel.rs/guides/all-about-selects

@Turbo87 Turbo87 added the C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear label Oct 17, 2025
@Turbo87 Turbo87 merged commit 1318801 into rust-lang:main Oct 17, 2025
10 checks passed
@Turbo87 Turbo87 deleted the has-query branch October 17, 2025 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants