Skip to content

Releases: rkrx/php-mysql-query-builder

Fixed an issue with references caused a row to be duplicated in some cases

16 Jun 07:49
Compare
Choose a tag to compare
  • Fixed an issue with references caused a row to be duplicated in some cases

0.1.42

14 Jun 12:50
Compare
Choose a tag to compare
0.1.42 Pre-release
Pre-release

Polyfill for the fetchRowsLazy yield/iterator

13 Jun 13:26
Compare
Choose a tag to compare
  • Polyfill for the fetchRowsLazy yield/iterator

Changed the behavior of `RunnableSelect::fetchRowsLazy`, `RunnableSelect::fetchRows`, added parameter `$callback` to `RunnableSelect::fetchRow`

13 Jun 12:17
Compare
Choose a tag to compare
  • Changed the behavior of RunnableSelect::fetchRowsLazy: If a $callback-Closure returns NULL will not cause a row to be omitted anymore; Row-by-reference is now possible; If a DBIgnoreRow is returned in a closure, the corresponding Row will be omitted now
  • Changed the behavior of RunnableSelect::fetchRows: If a $callback-Closure returns NULL will not cause a row to be omitted anymore; Row-by-reference is now possible; If a DBIgnoreRow is returned in a closure, the corresponding Row will be omitted now
  • Added parameter $callback to RunnableSelect::fetchRow

0.1.41.1

13 Jun 07:14
Compare
Choose a tag to compare
0.1.41.1 Pre-release
Pre-release
  • DBExprFilter is now able to deal with array-values

Various changes

11 Jun 10:44
Compare
Choose a tag to compare
Various changes Pre-release
Pre-release
  • Renamed OptionalDBFilterMap to DBExprFilter
  • Added new OptionalDBFilterMap
  • Added new RequiredDBFilterMap that throws a Kir\MySQL\Builder\Exception\RequiredValueNotFoundException if a value is not present
  • Added an example that shows an example of a simple repository
  • Some fixed reported by scrutinizer

0.1.40.2

10 Jun 20:10
Compare
Choose a tag to compare
0.1.40.2 Pre-release
Pre-release
  • Added OptionalDBFilterMap
$filter = [
    'name' => 'Peter',
    'date' => [
        'start' => '2016-05-01',
        'end' => '2016-05-31',
    ],
];

$query = $db
->from('t', 'test')
->where(new OptionalDBFilterMap('t.name=?', $filter, 'name'))
->where(new OptionalDBFilterMap('t.date >= ?', $filter, 'date.start')) // Key in dot-notation
->where(new OptionalDBFilterMap('t.date <= ?', $filter, ['date', 'end'])) // Array-Key

setPreserveTypes will not retain NULL-Values

10 Jun 08:43
Compare
Choose a tag to compare
  • If a SELECT-Statement was invoked with "preserve types" (select->setPreserveTypes) set to true, than INT and DECIMAL-Values will retain NULL-Values

Allow true nested transactions via SAVEPOINTs

31 May 13:00
Compare
Choose a tag to compare
  • Allow true nested transactions via SAVEPOINTs

Added Exception when attempting to execute a dry-run in a already opened transaction

31 May 12:28
Compare
Choose a tag to compare
  • Added Exception when attempting to execute a dry-run in a already opened transaction, since it's not possible to nest transactions.