protected function logQueryCompletion($sql)
    {
        $executionTime = microtime(true) - $this->executionStart;
        $timer = sprintf(" (Done in %s seconds)", round($executionTime, 4));

        $oneLine = preg_replace('/\s+/', ' ', trim($sql));
        Strata::app()->log($oneLine . $timer, "<magenta>Query</magenta>");
    }
protected function logQueryCompletion($sql)
    {
        $executionTime = microtime(true) - $this->executionStart;
        $timer = sprintf(" (Done in %s seconds)", round($executionTime, 4));

        $oneLine = preg_replace('/\s+/', ' ', trim($sql));
        Strata::app()->log($oneLine . $timer, "<magenta>Query</magenta>");
    }
protected function logQueryCompletion ( $ sql ) { $ executionTime = microtime ( true ) - $ this -> executionStart ; $ timer = sprintf ( " (Done in %s seconds)" , round ( $ executionTime , 4 ) ) ; $ oneLine = preg_replace ( '/\s+/' , ' ' , trim ( $ sql ) ) ; Strata :: app ( ) -> log ( $ oneLine . $ timer , "<magenta>Query</magenta>" ) ; }
Logs the completion time of the database query.
@param  string $sql
Logs the completion time of the database query .