is there a way to parse a SQL statement string into a Zend\Db\Sql\Select
object?
something along the lines of:
$sql = 'SELECT * FROM table WHERE col1 = "x"';
$select = new Select();
$select->parseSql($sql);
I have many uses for this, basically maintaining the use of a Select
object when executing a raw SQL statement, for example to pass to Zend\Paginator\Adapter\DbSelect
without having to write a custom Zend\Paginator\Adapter\DbSelect
Class.