Hi!
When using multi_insert with returning, is there a way to get inserted rows
as models instead of hashes?
For example, Model.returning.multi_insert(hashes) returns [<Model
@values={:id =>123 ....}>] instead of [{id: 123 ....}]
The ultimate goal is that I am trying to reduce the number of database
calls here.
Also, is there a way to pass a hash with a primary key to Model.new(hash)
without getting MassAssignmentRestriction?
Thank you so much!!! :)
Best,
Sunho
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/f4c421c1-031c-46af-ac80-3b2ec3a24c18%40googlegroups.com.