Easy-to-use PDO wrapper for PHP projects.
EasyDB::row()
always returns an array
instead of throwing a TypeError
when encountering null
. See also: #144.$duplicates_mode
parameter to be nullable in buildInsertQueryBoolSafe()
.ConstructorFailed
exception by calling the new getRealException()
method.insertIgnore()
(Insert a row into the table, ignoring on key collisions)insertOnDuplicateKeyUpdate()
(Insert a row into the table; or if a key collision occurs, doing an update instead)EasyStatement
: Don't fail with empty IN()
statementsFactory
class
by calling Factory::fromArray([$dsn, $username, $password, $options])
instead of Factory::create($dsn, $username, $password, $options)
.Congruent with 2.7.0's changes
Changed the behavior of several public APIs to invoke $this->prepare()
instead of $this->pdo->prepare()
. This might seem subtle, but in actuality, it allows classes that extend EasyDB
to implement prepared statement caching.
Seeing as PHP 5 is reaching EOL soon, you want v2.x instead of 1.x, but for legacy software this change can make EasyDB more useful.
Changed the behavior of several public APIs to invoke $this->prepare()
instead of $this->pdo->prepare()
. This might seem subtle, but in actuality, it allows classes that extend EasyDB
to implement prepared statement caching.
See https://github.com/paragonie/easydb-cache for more information
Fixed issues with insert()
and booleans. See #84