Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support select queries without from clause #605

Merged
merged 2 commits into from
Jul 23, 2023
Merged

Conversation

koskimas
Copy link
Member

@koskimas koskimas commented Jul 20, 2023

This has been requested a lot. Let's hope knex peeps don't get too confused.

select returns SelectQueryBuilder that has join methods that are not supported without a from clause. The alternative was copy-pasting the whole SelectQueryBuilder without the join methods. I think this is the lesser evil.

@vercel
Copy link

vercel bot commented Jul 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kysely ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2023 7:34am

@koskimas
Copy link
Member Author

@igalklebanov I changed the method name to selectNoFrom as discussed in Discord.

Copy link
Member

@igalklebanov igalklebanov left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@igalklebanov igalklebanov added enhancement New feature or request api Related to library's API labels Jul 22, 2023
@koskimas koskimas merged commit d8aae75 into master Jul 23, 2023
5 checks passed
@koskimas koskimas deleted the select-without-from branch July 23, 2023 07:40
Gaspero pushed a commit to Gaspero/kysely that referenced this pull request Oct 2, 2023
* support select queries without from clause

* rename select --> selectNoFrom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to library's API enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants