Releases: paragonie/easydb
Releases · paragonie/easydb
Version 3.1.1
What's Changed
- Allow object return type in row() by @alffonsse in #169
- Add unit test for changing ATTR_DEFAULT_FETCH_MODE by @paragonie-security in #170
- Always run mutation tests by @paragonie-security in #171
Full Changelog: v3.1.0...v3.1.1
Version 3.1.0
- Calling
insertReturnId()no longer unavoidably throws on PostgreSQL. Now, it only throws if you don't specify a sequence name (optional third parameter). - The README documentation now covers
insertReturnId() - Improved test coverage in #162, which includes integration tests with Firebird, MySQL, SQLite, Microsoft SQL Server, and PostgreSQL.
- We also now test with PHP 8.5 in CI.
- Updated the unit tests to support modern PHPUnit.
- Added mutation testing to CI.
Version 3.0.4
What's Changed
- Use prepare/statement also when there is no parameters by @jeanmonod in #159
- Ignore tests and workflows with "export-ignore" on .gitattributes by @erikn69 in #161
- Fix csv() when using non-default fetch style by @alffonsse in #160
New Contributors
- @jeanmonod made their first contribution in #159
- @erikn69 made their first contribution in #161
- @alffonsse made their first contribution in #160
Full Changelog: v3.0.3...v3.0.4
Version 3.0.3
What's Changed
- Psalm: accept EasyPlaceholder by @kamil-tekiela in #147
- Remove (and replace when needed) @psalm-taint-source annotations by @LeSuisse in #149
- Mark nullable parameters as nullable by @gijsdev in #156
- Update CI to test on newer PHP versions by @paragonie-security in #158
New Contributors
- @kamil-tekiela made their first contribution in #147
- @gijsdev made their first contribution in #156
Full Changelog: v3.0.2...v3.0.3
Version 3.0.2
- Guarantee that
EasyDB::row()always returns anarrayinstead of throwing aTypeErrorwhen 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_modeparameter 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
ConstructorFailedexception 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