Closed keldrox closed 4 years ago
Implemented in v3 (alpha1).
use Jasny\Persist\SQL\Query;
$query = new Query("INSERT INTO foo VALUES (1, 'test', 22), (2, 'bar', NULL)", 'mysql');
$values = $query->getValues(Query::UNQUOTE); // [ [1, 'test', 22], [2, 'bar', null] ]
Please note that the project name has changed to jasny/persist-sql-query
and the namespace has also changed..
getValues not working yet for an UPDATE query?
Thanks for your wonderful work
An update query doesn't have a VALUES
section. Use getSet()
instead.
I would very much like this functionality to exist
thanks!!