• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set_insert_batch, set_update_batch

#1
I am puzzled by the methods set_insert_batch and set_update_batch described in the docs.

What do they do? They don't allow one to specify a table and their parameters look unlike anything for insert_batch or update_batch. Can someone show me an example?

I'm also curious how to use update_batch -- how is the update logic determined if one just provides a bunch of arrays? Is it somehow aware of the primary key? What if the table has no primary key? What if you have twenty records with 10 columns each and these records each differ by only one column?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.