Commit e2c69d0c authored by Taylor Otwell's avatar Taylor Otwell

added query array to db\connection.

parent 7225ec0a
......@@ -23,6 +23,13 @@ class Connection {
*/
public $pdo;
/**
* All of the queries that have been executed on the connection.
*
* @var array
*/
public $queries = array();
/**
* Create a new Connection instance.
*
......@@ -66,6 +73,8 @@ class Connection {
*/
public function query($sql, $bindings = array())
{
$this->queries[] = $sql;
$query = $this->pdo->prepare($sql);
$result = $query->execute($bindings);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment