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

Union Selections #300

Open
MartinPetricko opened this issue Jun 5, 2023 · 0 comments
Open

Union Selections #300

MartinPetricko opened this issue Jun 5, 2023 · 0 comments

Comments

@MartinPetricko
Copy link

Hey, recently I noticed that there is no option for union selections with nette database explorer. Only way to use unions that I found is to write raw queries which is not very convenient.

I would like to propose syntax that may look something like this:

$loremSelection = $explorer->table('lorem')->select('field')->where(...)->order(...)->limit(...);
$ipsumSelection = $explorer->table('ipsum')->select('another_field AS field')->where(...);

$result = $explorer->union($loremSelection, $ipsumSelection)->where(...)->order(...)->limit(...)->fetchAll();

Is there a possibility that this feature would be added to nettes database explorer?

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

No branches or pull requests

1 participant