nette/database
💾 Nette Database: layer with a familiar PDO-like API but much more powerful. Building queries, advanced joins, drivers for MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle.
v3.2.9
7.1M downloads/mo
#2785 most downloaded on Packagist
nette/database
What this package is like to depend on
Last release 4 months ago
22 Apr 2026
Ships fairly regularly
a new release about every 5 months
Rarely documented
notes for 9 of 56 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
57 releases · first in 2014
2 releases in the last 12 months
see the full history below
Release timeline
57 releases · May 2014 to Apr 2026Releases
latest 57-
v4.0.0-RC129 Aug 2024 pre-releaseNothing published for this version
-
v3.2.922 Apr 2026Release notes
Open source →This release brings a set of focused exception types that let you catch specific database failure modes (deadlocks, lock timeouts, check constraint violations, lost connections) instead of wrestling with generic driver errors. ActiveRow and Selection now expose
getExplorer()for direct access to the underlying Explorer, and the reflection layer has been refactored for more consistent metadata across drivers.✨ New Features
- getExplorer() –
ActiveRowandSelectionnow expose the underlyingExplorerinstance, no more jumping through hoops to get back to it - DeadlockException – catch deadlocks and serialization failures distinctly from other driver errors, so retry logic can stay surgical
- LockTimeoutException – a dedicated exception for lock wait timeouts
- CheckConstraintViolationException – check constraint violations now get their own class instead of being lumped with generic constraint errors
- ConnectionLostException – distinguish dropped connections from other driver failures, making reconnect strategies much cleaner
- Docker Compose setup – a ready-to-run Compose configuration for spinning up test databases locally
♻️ Code Refactoring
- Drivers reflection output – unified FK row shape across drivers, simplified MsSql
getIndexesSQL, parameterized SQLite PRAGMA queries, andForeignKey::$nameis now a non-nullable string
📦 Maintenance
- Improved PHPDoc descriptions, phpDoc types, and native type declarations across the codebase
- getExplorer() –
-
v3.2.830 Oct 2025Release notes
Open source →- support for PHP 8.5
- OciDriver: in case of applyLimit with different offset returns always the same result
-
v3.2.703 Jun 2025Release notes
Open source →- SqlPreprocessor:
IN()inserts parameters directly and bypasses binding - added
GroupedSelection::refreshData() - Reflection: added comment to Column and Table
- Structure: removed unused parameter
- SqlPreprocessor:
-
v3.2.612 Jan 2025Release notes
Open source →- fixed performance issue of ActiveRow #312
- ConnectionPanel: added whole stack trace listing
- ConnectionPanel: fixed source resolution
- ConnectionPanel: table does not exceed the window
- ConnectionPanel: convert templates to Latte-like syntax
- Selection: factory methods moved to Explorer
- SqlPreprocessor: added braces around where conditions
- SqlPreprocessor: fixed bugs in WHERE
- big refactoring of SqlPreprocessor
- deprecated Driver::SupportSubselect
Selection::fixedAssoc()silently deprecated- SQLite: column type can be omitted #315
-
v3.2.518 Dec 2024Release notes
Open source →- ResultSet: added
fetchList()as alias forfetchFields()& shortcuts ResultSet::fetchAssoc()returns associative array by default, added shortcuts- removed dead code
- ResultSet: added
-
v3.2.428 Aug 2024Release notes
Open source →- ResultSet, Selection:
fetchPairs()accepts callback - Selection: support for generics
- drivers: improved getting db structure
- Reflection improvements
normalizeRow(): removed extra float handling #307Helpers::detectType()supports 'INT UNSIGNED'- md5 replaced with xxHash
- removed return type 'never' to allow inheritance #303
- MySQL: supportBooleans renamed to convertBoolean
- PascalCase constants
MySqlDriver::initialize()removed support for 'utf8' charset before 5.5.3- Selection: fixed type error on empty aggregations #309
SqlsrvDriver::applyLimit()removed support for SQL Server < 2012- support for PHP 8.4
- ResultSet, Selection:
-
v3.2.107 May 2024Release notes
Open source →- added reflection for Table, Column, Index, ForeignKey
- returns date-time as immutable Nette\Database\DateTime (when 'newDateTime' is enabled) #270
-
v3.2.014 Dec 2023Release notes
Open source →- requires PHP 8.1
- added PHP 8 typehints, uses PHP 8.1 features
- MySqlDriver: DECIMAL with precision=0 is returned as int (BC break)
- normalizeRow: converts zero-date 0000-00-00 to NULL (BC break)
- normalizeRow: time columns resets date to 0001-01-01 (BC break)
- Numeric/decimal data type is detected as FIELD_DECIMAL
- MySqlDriver: TINYINT(1) is returned as bool (when 'supportBooleans' is enabled)
-
v3.1.905 Nov 2023 -
v3.1.713 Jan 2023Nothing published for this version
-
v3.1.618 Nov 2022Nothing published for this version
-
v3.1.510 Mar 2022Nothing published for this version
-
v3.1.424 Nov 2021Nothing published for this version
-
v3.1.331 May 2021Nothing published for this version
-
v3.1.222 Apr 2021Nothing published for this version
-
v3.1.112 Jan 2021Nothing published for this version
-
v3.1.021 Dec 2020Nothing published for this version
-
v3.0.730 Oct 2020Nothing published for this version
-
v3.0.604 Feb 2020Nothing published for this version
-
v3.0.513 Dec 2019Nothing published for this version
-
v3.0.419 Nov 2019Nothing published for this version
-
v3.0.330 Sep 2019Nothing published for this version
-
v3.0.208 Jul 2019Nothing published for this version
-
v3.0.101 Apr 2019Nothing published for this version
-
v3.0.020 Feb 2019Nothing published for this version
-
v2.4.1218 Nov 2022Nothing published for this version
-
v2.4.1106 Nov 2020Nothing published for this version
-
v2.4.1019 Mar 2020Nothing published for this version
-
v2.4.919 Nov 2019Nothing published for this version
-
v2.4.826 Nov 2018Nothing published for this version
-
v2.4.716 Oct 2018Nothing published for this version
-
v2.4.601 Jun 2018Nothing published for this version
-
v2.4.505 Feb 2018Nothing published for this version
-
v2.4.427 Jul 2017Nothing published for this version
-
v2.4.312 Jul 2017Nothing published for this version
-
v2.4.202 Feb 2017Nothing published for this version
-
v2.4.118 Oct 2016Nothing published for this version
-
v2.4.028 Jun 2016Nothing published for this version
-
v2.3.1112 Dec 2016Nothing published for this version
-
v2.3.1018 Oct 2016Nothing published for this version
-
v2.3.930 May 2016Nothing published for this version
-
v2.3.803 Dec 2015Nothing published for this version
-
v2.3.705 Oct 2015Nothing published for this version
-
v2.3.614 Sep 2015Nothing published for this version
-
v2.3.523 Aug 2015Nothing published for this version
-
v2.3.420 Jul 2015Nothing published for this version
-
v2.3.320 May 2015Nothing published for this version
-
v2.3.222 Apr 2015Nothing published for this version
-
v2.3.126 Mar 2015Nothing published for this version
-
v2.3.020 Feb 2015Nothing published for this version
-
v2.2.519 Jul 2015Nothing published for this version
-
v2.2.410 Mar 2015Nothing published for this version
-
v2.2.308 Nov 2014Nothing published for this version
-
v2.2.224 Aug 2014Nothing published for this version
-
v2.2.125 May 2014Nothing published for this version
-
v2.2.011 May 2014Nothing published for this version