version: 2.1.12
last
Return the last query performed.
last()
Return: [string] The last query string.
Like log(), but just return the last query.
$database->select("account", [ "user_name", "email" ], [ "user_id[<]" => 20 ]); $database->insert("account", [ "user_name" => "foo", "email" => "foo@bar.com" ]); echo $database->last(); // INSERT INTO "account" ("user_name", "email") VALUES ('foo', 'foo@bar.com')