Releases: paragonie/easydb
Releases · paragonie/easydb
Version 3.0.2
- Guarantee that
EasyDB::row()
always returns anarray
instead of throwing aTypeError
when encounteringnull
. See also: #144.
Version 3.0.1
- #143:
Don't assume the array passed to insertMany() is indexed at 0. - Fixed the type declaration of the
$duplicates_mode
parameter to be nullable inbuildInsertQueryBoolSafe()
.
Version 3.0.0
Version 2.12.0
Version 2.11.0
Version 2.10.0
- You can now pull the original exception (which may leak credentials via stack trace) from a
ConstructorFailed
exception by calling the newgetRealException()
method. - Added
insertIgnore()
(Insert a row into the table, ignoring on key collisions) - Added
insertOnDuplicateKeyUpdate()
(Insert a row into the table; or if a key collision occurs, doing an update instead) - #111:
EasyStatement
: Don't fail with emptyIN()
statements
Version 2.9.0
- You can now side-step credential leakage in the
Factory
class
by callingFactory::fromArray([$dsn, $username, $password, $options])
instead ofFactory::create($dsn, $username, $password, $options)
.
Version 1.7.0
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.
Version 2.7.0
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
Version 2.6.2
Fixed issues with insert()
and booleans. See #84