Petr Kopac
Petr Kopac
Based on #191. Additionally, I provide rationale why it's necessary and omit the keep alive change. Refactoring the related logic into a smaller private method, so it's more readable. Implicitly...
Hi! Try passing a pointer to struct to .Query. It won't do anything and it won't fail anything. I'm circumventing by dereferencing everything, but it is very easy to forget...
`SomeModel` represents partitioned table (by `partition_key`), where primary key is `%w[id partition_key]` so when I do this: ```ruby SomeModel.import!( array_of_attributes, on_duplicate_key_update: { conflict_target: %i[id partition_key], columns: %i[...] }, returning: %i[id...