cleaning up code.
This commit is contained in:
parent
f608157ffc
commit
ba6590d7b1
|
@ -143,7 +143,7 @@ public static function profile()
|
||||||
*/
|
*/
|
||||||
public static function last_query()
|
public static function last_query()
|
||||||
{
|
{
|
||||||
return Database\Connection::last_query();
|
return end(Database\Connection::$queries);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -333,16 +333,4 @@ public function __call($method, $parameters)
|
||||||
return $this->table($method);
|
return $this->table($method);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the last query that was executed.
|
|
||||||
*
|
|
||||||
* Returns false if no queries have been executed yet.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public static function last_query()
|
|
||||||
{
|
|
||||||
return end(static::$queries);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue