Skip to content

support join ... using (#1046)#1083

Open
w1ll-i-code wants to merge 1 commit into
SeaQL:masterfrom
w1ll-i-code:1046-support-join-using
Open

support join ... using (#1046)#1083
w1ll-i-code wants to merge 1 commit into
SeaQL:masterfrom
w1ll-i-code:1046-support-join-using

Conversation

@w1ll-i-code

Copy link
Copy Markdown

PR Info

New Features

  • Supports using JOIN ... USING

@w1ll-i-code w1ll-i-code force-pushed the 1046-support-join-using branch from c0ac456 to dbdebe7 Compare June 11, 2026 10:05
Comment thread src/query/select.rs Outdated
@w1ll-i-code w1ll-i-code force-pushed the 1046-support-join-using branch 2 times, most recently from 312c252 to cfddf11 Compare June 12, 2026 10:15
Comment thread src/query/select.rs Outdated
Comment on lines +1954 to +1958
pub fn join_using<R, T, I>(&mut self, join: JoinType, tbl_ref: R, columns: I) -> &mut Self
where
R: IntoTableRef,
T: IntoColumnRef,
I: IntoIterator<Item = T>,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
pub fn join_using<R, T, I>(&mut self, join: JoinType, tbl_ref: R, columns: I) -> &mut Self
where
R: IntoTableRef,
T: IntoColumnRef,
I: IntoIterator<Item = T>,
pub fn join_using(&mut self, join: JoinType, tbl_ref: impl IntoTableRef, columns: impl IntoIterator<Item = impl IntoColumnRef>) -> &mut Self

Does this work on sea-query's MSRV?

@w1ll-i-code w1ll-i-code Jun 15, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It does, but it'd be inconsistent with the surrounding code, which all use the explicit syntax. I still can change that, if that's the direction the project wants to take.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Using impl Trait in new code is fine. The old code was written before Rust supported this syntax.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed, as well as the formatting issue in the tests. There seem to be problems with the builds however. Looks like a dependency broke.

@w1ll-i-code w1ll-i-code force-pushed the 1046-support-join-using branch from cfddf11 to 73584bd Compare June 15, 2026 08:49
@Huliiiiii Huliiiiii requested review from Expurple and tyt2y3 June 15, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support JOIN ... USING

2 participants