getSQL() public method

Should returns a string containing the most recent SQL query that has been processed by the adapter.
public getSQL ( ) : string
return string
Example #1
0
 /**
  * Log queries
  *
  * @param string          $event
  * @param Adapter $info
  */
 public function onEvent($event, $info)
 {
     $this->queries[] = $info->getSQL();
 }