Add last_query() helper method to Database class, too.
Signed-off-by: Franz Liedke <franz@develophp.org>
This commit is contained in:
parent
98b9898003
commit
b4f07d43f5
|
@ -133,6 +133,18 @@ public static function profile()
|
|||
{
|
||||
return Database\Connection::$queries;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the last query that was executed.
|
||||
*
|
||||
* Returns false if no queries have been executed yet.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function last_query()
|
||||
{
|
||||
return Database\Connection::last_query();
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a database connector and grammars.
|
||||
|
|
Loading…
Reference in New Issue