Commit b4f07d43 by Franz Liedke

Add last_query() helper method to Database class, too.

Signed-off-by: Franz Liedke <franz@develophp.org>
parent 98b98980
...@@ -135,6 +135,18 @@ class Database { ...@@ -135,6 +135,18 @@ class Database {
} }
/** /**
* 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. * Register a database connector and grammars.
* *
* @param string $name * @param string $name
......
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