Version: v2.3.0
last
Return the last executed query.
last()
Return Value
[string] The last executed SQL query string.
Similar to
log(), but always returns only the most recent query.$database->select("account", [
"user_name",
"email"
], [
"user_id[<]" => 20
]);
$database->insert("account", [
"user_name" => "foo",
"email" => "foo@bar.com"
]);
echo $database->last();
// Last executed query:
// INSERT INTO "account" ("user_name", "email") VALUES ('foo', 'foo@bar.com')