Skip to content

Releases: JarJak/DBALManager

Release 3.0

20 Apr 10:56
Compare
Choose a tag to compare

Major release with BC Breaks.
Main changes:

  • requires PHP >= 7.1
  • uses strict typing
  • all deprecated methods have been removed
  • setConnection has been removed. Pass connection to constructor instead.
  • main methods have lost ByArray suffix
  • improved tests coverage

Release 2.1.2

20 Apr 01:26
98b5c2a
Compare
Choose a tag to compare

Fix return as array

Release 2.1.1

20 Apr 00:51
98b5c2a
Compare
Choose a tag to compare

Fix return as array

Release 2.1

19 Apr 22:49
98b5c2a
Compare
Choose a tag to compare

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:

  • multiInsertOrUpdateByArray can 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

09 Mar 13:58
Compare
Choose a tag to compare

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.

Release 1.1.0

17 Oct 08:33
Compare
Choose a tag to compare

new method "multiInsertIgnoreByArray"

1.0.1

04 Feb 13:48
Compare
Choose a tag to compare
downgrade reqiured dbal version