Repository navigation
Releases: timmit-nl/db-mysql
Releases · timmit-nl/db-mysql
Release list
v12.3.0
What's Changed
New
DB::getAffectedRows()returns the number of rows affected by the last write query.- Configurable matched-row reporting: new
$useFoundRowsargument onnew DB()andDB::loadConfig(). When enabled, the affected-row count of anUPDATEincludes matching rows whose values did not change.
Fixes
Where\Param: boolean values are now converted to1and0. Previouslyfalsebecame an empty string, which resulted in invalid SQL (e.g.WHERE `field` =). Booleans insideinArray()benefit as well. (#4)
Maintenance
- Development tooling moved to PHPStan 2.2 with
phpstan-strict-rulesandphpstan-deprecation-rules2.0. Loose comparisons were made strict and a few type annotations corrected; there is no intended change in runtime behaviour. Onlyrequire-devchanged, so users of the package are not affected. (#3) - CI moved from GitLab CI to GitHub Actions, with an overview of all check results on every run. (#1)
- Added a README with installation, usage and development instructions. (#5)
Pull requests
- Add GitHub Actions workflows (converted from GitLab CI) by @timmit-nl in #1
- Update PHPStan to 2.2 by @timmit-nl in #3
- Boolean clean conversion by @timmit-nl in #4
- Add README by @timmit-nl in #5
Full Changelog: v12.0.1...v12.3.0