Releases: JarJak/DBALManager
Releases · JarJak/DBALManager
Release list
Release 3.0
Major release with BC Breaks.
Main changes:
- requires
PHP >= 7.1 - uses strict typing
- all deprecated methods have been removed
setConnectionhas been removed. Pass connection to constructor instead.- main methods have lost
ByArraysuffix - improved tests coverage
Release 2.1.2
Release 2.1.1
Release 2.1
This release contains bunch of fixes as well as updated tests.
This is also probably last release with PHP 5.6 support. Version 3.0 will support PHP 7.
New features:
multiInsertOrUpdateByArraycan now return an array with inserted and updated rows counts instead of single integer count. Example:
$res = $dbal->multiInsertOrUpdateByArray(
'dumb_table',
[['dumb' => 'value'], ['dumb' => 'value']],
0,
false,
true // <- set this to true to return array (default: false)
);
dump($res); // ['inserted' => 0, 'updated' => 0]Release 2.0
DBALManager class splitted into 3 classes for SRP:
- DBALManager
- SqlDumper
- SqlPreparator
dump*() functions now fallbacks to var_dump() if VarDumper is not installed.
Tests have been added.
Methods insertByArray, updateByArray are now deprecated.
New method multiInsertOrUpdateByArray.
NO BC BREAKS so far.