Releases: nette/database
Releases · nette/database
Released version 4.0.0 RC 1
Main Features
- Ability to create drivers for additional PHP database extensions, not just PDO
- Merging of Connection & Explorer
- Improved control over data type transformation with options
convertBoolean
,convertDateTime
, andconvertDecimal
Changes
Connection::getInsertId()
now returns integers- The options
convertBoolean
andnewDateTime
(returns date asNette\Database\DateTime
) are enabled by default - Removed interfaces
IRow
andIRowContainer
- Removed methods
Connection::getPdo()
andgetDsn()
Released version 3.2.4
- 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
Released version 3.2.1
- added reflection for Table, Column, Index, ForeignKey
- returns date-time as immutable Nette\Database\DateTime (when 'newDateTime' is enabled) #270
Released version 3.2.0
- 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)
Released version 3.1.9
- support for PHP 8.3
- used PhpStorm Language attribute
Released version 3.1.7
- composer: allows nette/utils 4.0
Released version 3.1.6
- support for PHP 8.2
- ConnectionPanel: detecting source without filesystem check
- used #[\SensitiveParameter] to mark sensitive parameters
- cs
Released version 3.1.5
- SqlTranslator: convert BackedEnum to scalar (thanks @milo)
normalizeRow()
don't return small float as string #289- drivers: updated
getForeignKeys()
#281 ConnectionPanel::initialize()
replacesHelpers::initializeTracy()
- DatabaseExtension: creates service '.explorer' as alias to '.context'
- PgSqlDriver: support for partitioned tables (#286)
- PgSqlDriver:
getColumns()
for materialized view too - coding style
Released version 3.1.4
- support for PHP 8.1
- Fixed aggregations when group by and having conditions are used (#284)
queryArgs()
&ResultSet::getConnection()
are silently deprecated