darkain / pudl

PHP Universal Database Library - connects to and generates queries for SQL Servers
BSD 2-Clause "Simplified" License
28 stars 5 forks source link

EXPLAIN format=JSON #29

Closed darkain closed 2 years ago

darkain commented 2 years ago

https://github.com/darkain/pudl/blob/fa4ab5992a2b0925f6229ebdcd05438ec3395e48/pudl.php#L516

Add an optional parameter for $format

Default = NULL, meaning no format in query at all

If specified, add the "format=$format" to string (with proper sanitizing)

darkain commented 2 years ago

Added support in: https://github.com/darkain/pudl/commit/dac33f6ecfb484429bb92d5689264ed9ae3b3483