jugglingdb icon indicating copy to clipboard operation
jugglingdb copied to clipboard

Support bulk create, update and delete

Open erin-noe-payne opened this issue 11 years ago • 5 comments

  • AbstractClass.create() should support an array of objects. In the case of an array the result should be a single query or database transaction that acts as a bulk insert.
  • AbstractClass.destroyAll() should support an optional params argument, mirroring the syntax of AbstractClass.all(). Allows us to write a bulk delete query ("DELETE FROM table WHERE ...") rather than retrieving, iterating over and deleting X number of objects.

erin-noe-payne avatar Jan 10 '13 21:01 erin-noe-payne