added profile method to db class.

This commit is contained in:
Taylor Otwell 2012-01-16 16:39:54 -06:00
parent f9bc3cc2df
commit a204054ad3
1 changed files with 10 additions and 0 deletions

View File

@ -110,6 +110,16 @@ public static function raw($value)
return new Expression($value); return new Expression($value);
} }
/**
* Get the profiling data for all queries.
*
* @return array
*/
public static function profile()
{
return Database\Connection::$queries;
}
/** /**
* Magic Method for calling methods on the default database connection. * Magic Method for calling methods on the default database connection.
* *