Medoo
Medoo copied to clipboard
Question: Does get() do a LIMIT 1?
Just curious if we need to add 'limit' = 1 to all get statements?
Yeah, it does.
$email = $database->get("account", "email", [
"user_id" => 1234
]);
Will create the following query
SELECT `email` FROM `account` WHERE `user_id` = 1234 LIMIT 1