Releases: dg/dibi
Releases · dg/dibi
Released version 4.0.1
- PdoDriver: check for misconfigured PDO connections resource (#294)
- Connection: added config option onConnect (#303)
- Connection::
update()
Support updating multiple tables at once (#316) - Connection: accepts Driver instance (fixes 51fa3b9) #315
- fix: setType should accept null as type (#309)
- fix TypeError:
substr()
expects parameter 1 to be string, null given (#306) - OdbcDriver: added option 'microseconds'
- Dibi\Fluent: add annotations for methods
and()
,asc()
,desc()
#298 (#299) - drivers: config is not passed via reference (BC break)
- Firebird: Add
escapeLike()
(#300,#305) - DibiExtension: compatibility with Nette DI 3.x (#297)
- PdoDriver::
getInsertId()
fixed - Sqlite3Driver becomes alias for SqliteDriver
For the details you can have a look at the diff.
Released version 3.2.3
Released version 4.0.0
Please make a donation at https://nette.org/make-donation?to=dibi
New features
- requires PHP 7.1
- added declare(strict_types=1)
- added PHP 7.1 scalar and return type hints
- added JSON support [Closes #269]
- added Dibi\Expression and shortcut Connection::expression() (should be used instead of arrays in queries) [Closes #264]
- used safe casting to int
- Translator: %i %f throws exception when value is not numeric
- Dibi\Exception: Previous exception can now be passed to constructor (#275)
- PdoDriver: improved detection of query result [Closes #279]
- PdoDriver: returns OracleReflector, PostgreReflector, SqlsrvReflector
- added interface IConnection (#274)
- added Result::getColumnCount()
Deprecations
- deprecated insertId() (use getInsertId), affectedRows() (use getAffectedRows) and DateTime::modifyClone() (use modify)
- extension methods are deprecated
- Connection::__construct() parameter config should be array
Changes, BC breaks
- Connection::query() and Fluent::execute() always return Result, not the number of affected rows
- fetch(), fetchSingle(), getAffectedRows(), getInsertId() return NULL instead of FALSE on error
- removed support for old class names without namespaces (it also applies to v3.2)
- installable only via Composer, removed minified version
- automatically decodes JSON columns see
- DateTime extends DateTimeImmutable instead of DateTime
- also note, that support for microseconds (since Dibi 3.1) can lead to BC break, see this
- all drivers divided into Driver, ResultDriver and Reflector
- reflection: removed Column::isUnsigned()
- removed support for obsolete FirePHP browser plugin and MSSQL driver (there is a new SQLSRV driver)
- Sqlite3Driver: removed support for charset conversion
- OracleDriver: by default uses native date format
- removed dibi::$defaultDriver
- removed Dibi\IDriver::connect()
Released version 3.2.2
- Result: added
getColumnCount()
- added dibi::stripMicroseconds
- type improvements and fixes
- Sqlite3Driver: for SQLite 3 is not needed to strip [] from column names
- examples: dibi:: replaced with $dibi->
For the details you can have a look at the diff.
Released version 3.2.1
Please make a donation at https://nette.org/make-donation?to=dibi
- Revert "loader: uses only Composer's autoloader"
- Translator: improved Expression usage
- PdoDriver: improved detection of query result #279
- Firebird: fix datetime precision (#277) (#273)
For the details you can have a look at the diff.
Released version 3.2.0
Support for old class names without namespace ended.
Be sure to change every catch (DibiException $e)
to catch (Dibi\Exception $e)
- loader: old class names like DibiConnection triggers E_USER_DEPRECATED
- loader: removed old class preloading
- loader: uses only Composer's autoloader
Released version 3.1.1
This is the last 3.1 release.
- Previous exception can now be passed to Dibi\Exception constructor (#276)
- Microsoft SQL Server and MSSQL support for microseconds fix cont.
- Microsoft SQL Server and MSSQL support for microseconds fix (#249)
- loader: fixed missing class 'dibi.php'
- drivers: changed self:: to static::
For the details you can have a look at the diff.
Released version 3.0.9
Released version 3.1.0
- requires PHP 5.4 and supports PHP up to 7.2
- added Dibi\Expression [Closes #264]
- Support for microseconds (#246) (BC break)
- Translator: fixed %dt with DateTimeInterface object [Closes #263]
- OdbcDriver, OracleDriver, SqlsrvDriver, Sqlite3Driver: query() returns ResultSet only when contains columns
- Connection, dibi: deprecated insertId() & affectedRows() in favor getInsertId() & getAffectedRows()
- Translator: %i %f throws exception when value is not numeric (BC break)
- OracleDriver: added 'nativeDate' option, formatDate & formatDateTime are deprecated (#232)
- Helpers::loadFromFile improved, added $onProgress
- support for 64bit numbers on 32bit platform [Closes #253] (BC break)
- coding style: TRUE/FALSE/NULL -> true/false/null
- removed bridges for Nette < 2.2
- removed folder /dibi
Warning: support for microseconds can lead to BC break in PHP 7.1, see this
For the details you can have a look at the diff.