stellarwp/db
A WPDB wrapper and query builder library.
1.3.0
1.2M downloads/mo
#3431 most downloaded on Packagist
stellarwp/db
What this package is like to depend on
Last release 5 months ago
25 Feb 2026
Release timing varies
gaps range from 3 weeks to 1.4 years
Nearly every release is documented
notes for 12 of 12 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
12 releases · first in 2022
2 releases in the last 12 months
see the full history below
Release timeline
12 releases · Aug 2022 to Feb 2026
2023
2024
2025
2026
Releases
latest 12-
1.3.025 Feb 2026Release notes
Open source →Release notes
Open source →Added
- Transaction nesting support via savepoints. Nested
beginTransaction()calls now create savepoints instead of issuingSTART TRANSACTION, which would implicitly commit any existing transaction. DB::transactionLevel()method to retrieve the current transaction nesting depth.
Changed
DB::commit()releases the current savepoint when nested, and issues a realCOMMITonly at the outermost level.DB::rollback()rolls back to the current savepoint when nested, and issues a realROLLBACKonly at the outermost level.tests-php.ymlensure slic runs in PHP 7.4.
- Transaction nesting support via savepoints. Nested
-
1.2.010 Nov 2025 -
1.1.106 Jun 2024 -
1.1.014 Nov 2023Release notes
Open source →Changes
- Feature - Added
upsert()method (props to @binarygary for the work!)
- Feature - Added
-
1.0.723 Oct 2023Release notes
Open source →Changes
- Tweak - Updates around
trim()for php 8.1 compatibility. - Tweak - Force
From()andSelect()to convert passed non-strings to an empty string.
Release notes
Open source →- Tweak - Updates around
trim()for php 8.1 compatibility. - Tweak - Force
From()andSelect()to convert passed non-strings to an empty string.
- Tweak - Updates around
-
1.0.608 Sep 2023 -
1.0.506 Sep 2023Release notes
Open source →Changes
- Tweak - Updating doc lock for whereExists() and whereNotExists() in response to a PHPStan flag.
Release notes
Open source →- Tweak - Updating docblock for
whereExists()andwhereNotExists()in response to a PHPStan flag.
-
1.0.406 Jun 2023Release notes
Open source →- Tweak - Added more documentation for methods provided by
DB. - Tweak - Adjusted docblocks to better declare types.
Release notes
Open source →- Tweak - Added more documentation for methods provided by DB.
- Tweak - Adjusted docblocks to better declare types.
- Tweak - Added more documentation for methods provided by
-
1.0.322 Nov 2022 -
1.0.222 Nov 2022Release notes
Open source →Changes
- Fix - Adjust
DB::insert(),DB::delete(),DB::update(), andDB::replace()signature to matchwpdb's supported method signatures. - Fix - Adjust
DB::get_var(),DB::get_col(), andDB::get_results()signature of first arg to matchwpdb's signature.
Release notes
Open source →- Fix - Adjust
DB::insert(),DB::delete(),DB::update(), andDB::replace()signature to matchwpdb's supported method signatures. - Fix - Adjust
DB::get_var(),DB::get_col(), andDB::get_results()signature of first arg to matchwpdb's signature.
- Fix - Adjust
-
1.0.128 Sep 2022Release notes
Open source →- Tweak - Added a
Configclass to handle overrides of theDatabaseQueryExceptionand addition of a hook prefix. - Tweak - Added tests for
Config - Docs - More documentation
- Tweak - Added a
-
1.0.028 Aug 2022