Get Started

Where Syntax

Query

Transaction

Advanced

PDO object

Debug

Information

version: 1.1.3

log

Return the all executed queries.

log()
Return: [array] an array with all executed queries
You can use this function to check out the performed SQL queries for debug.
$database->select("account", [
	"user_name",
	"email"
], [
	"user_id[<]" => 20
]);

$database->insert("account", [
	"user_name" => "foo",
	"email" => "foo@bar.com"
]);

var_dump( $database->log() );
// array(2) {
//	[0]=> string(62) "SELECT "user_name","email" FROM "account" WHERE "user_id" < 20"
//	[1]=> string(74) "INSERT INTO "account" ("user_name", "email") VALUES ('foo', 'foo@bar.com')"
// }