Skip to content

Medoo v2.5.0 - Compatibility

Latest

Choose a tag to compare

@catfan catfan released this 13 Jul 08:19

New Features

  • log() will output the SQL execution time #989.
$database->select('account', ['id', 'name'], [
    'name' => 'Alice'
]);

print_r($database->log());

// Array
// (
//     [0] => Array
//         (
//             [0] => SELECT "id","name" FROM "account" WHERE "name" = 'Alice'
//             [1] => 0.000032s
//         )
// )
  • New [!REGEXP] operator.
$database->select("account", "user_name", [
    'user_name[!REGEXP]' => '[a-z0-9]*'
]);
SELECT "user_name" FROM "account" WHERE "user_name" NOT REGEXP '[a-z0-9]*'

Improvements

  • Improved SQL database compatibility.
  • Resolved documentation issues for select() #1143.