Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@rafaelnajera rafaelnajera released this 30 Jan 10:25
· 1 commit to master since this release

New features

  • DataTable now has transaction methods (start/commit/rollback) implemented fully in MySqlDataTable and MySqlUnitemporalDataTable
  • Most common argument errors now throw specific exceptions (may break current code for 1.0)
  • getRow now returns null if a row does not exist (may break current code for 1.0)
  • Find / Search and getAllRows now return an iterator that implements DataTableResultsIterator. This is more efficient than getting all the results in an array but may certainly break current code. The returned iterator has a convenience count() method, which is better than iterator_count
  • DataTable->getIdForKeyValue is deprecated, use normal find / seach methods
  • DataTable now extends LoggerAwareInterface, but not much is reported to the logger. More will come in future versions.
  • DataTable now extends ArrayAccess, allowing code such as $dt[] = $row or unset($dt[$id)
  • DataTable now extends IteratorAggregate: $dt->getIterator() is basically an alias for $dt->getAllRows()

Coming up in future versions:

  • Sorting results in find / search / getAllRows.