You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In writing framework benchmark, one of the test cases required data that would have been more conveniently fetched using the FETCH_KEY_PAIR mode. I worked around it by using array_column.
It would be more convenient to either specify the fetch mode as an optional parameter to select or have additional methods (like selectColumn).
Yes, some of these are a bit verbose. But you have IDEs with autocomplete everywhere, and we currently can’t think of any solution other than these separate methods that we like as much.
In writing framework benchmark, one of the test cases required data that would have been more conveniently fetched using the FETCH_KEY_PAIR mode. I worked around it by using array_column.
It would be more convenient to either specify the fetch mode as an optional parameter to select or have additional methods (like selectColumn).
benchmark code: https://github.com/bfinlay/FrameworkBenchmarks/blob/delight.im/frameworks/PHP/delight.im/app/Controller.php
The text was updated successfully, but these errors were encountered: