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

[10.x] Add selectResultsets to database Connection #46592

Merged
merged 2 commits into from
Mar 29, 2023
Merged

[10.x] Add selectResultsets to database Connection #46592

merged 2 commits into from
Mar 29, 2023

Conversation

pistvan
Copy link
Contributor

@pistvan pistvan commented Mar 25, 2023

At our company many of our logic is written in SQL stored procedures, and many of them returns with multiple result sets. This PR adds a selectResultsets method to the DB facade so that the multiple result sets of these SPs can be get via a single framework call.
(Using the underlying PDO layer might be a solution but those calls does not logged by the framework.)

An example:

list($user_params, $user_notifications) = DB::selectResultsets("CALL get_user_params_and_notifications(?)", Auth::id());

@taylorotwell taylorotwell merged commit b760e61 into laravel:10.x Mar 29, 2023
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