Skip to content

2.2.0

Choose a tag to compare

@BJNSTNKVC BJNSTNKVC released this 26 Sep 19:02
· 13 commits to master since this release

Added

  • reorder(column?, direction?) removes existing orders, including a random one, and can set a new one.
  • inRandomOrder() returns records shuffled. It applies to get, first, chunk, each, lazy and joined queries. With a limit or offset, update, delete, increment and decrement pick their records at random.
  • whereTime(column, operator?, value) constrains the time of day of a date column, read in local time. HH:MM is treated as HH:MM:00.
  • whereAny, whereAll and whereNone apply one comparison across several columns.

Changed

  • dump() output now includes a random field.