Skip to content

Conversation

trueqbit
Copy link
Collaborator

@trueqbit trueqbit commented Oct 2, 2025

  • Added missing expressions with table references: cross_join<>(), natural_join<>(), into<>().
  • Fixed aliasing a table reference.
    Let user_table be a table reference of User, then "u"_alias.for_<user_table>() must be the same as "u"_alias.for_<User>().

These are: `cross_join<>()`, `natural_join<>()`, `into<>()`.
@trueqbit trueqbit requested a review from fnc12 October 2, 2025 13:36

#ifdef SQLITE_ORM_WITH_CPP20_ALIASES
template<orm_refers_to_recordset auto alias>
auto cross_join() {
Copy link
Owner

Choose a reason for hiding this comment

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

no tests or example with it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There are tests in tests/static_tests/column_pointer.cpp specifically for expressions that involve table references. Otherwise, there are already the usual tests and examples for cross and natural joins.

@trueqbit trueqbit merged commit 36a07f7 into dev Oct 2, 2025
3 of 4 checks passed
@trueqbit trueqbit deleted the fix-alias_add-missing branch October 2, 2025 20: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.

2 participants