Skip to content

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

2 participants