Skip to content

Commit 10a728f

Browse files
committed
Return primary keys when using blocks or values
1 parent 98ee664 commit 10a728f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ Default value for this option is false.
160160
destination_columns = [:title, :author]
161161

162162
# Update duplicate rows (MySQL)
163+
163164
Book.bulk_insert(*destination_columns, update_duplicates: true) do |worker|
164165
worker.add(...)
165166
worker.add(...)
@@ -203,6 +204,7 @@ worker.result_sets
203204
worker.inserted_ids
204205
```
205206

207+
<<<<<<< HEAD
206208
## Ruby and Rails Versions Supported
207209

208210
> :warning: The scope of this gem may be somehow covered natively by the `.insert_all` API
@@ -227,6 +229,8 @@ The adapters covered in the CI are:
227229
* postgresql
228230

229231

232+
=======
233+
>>>>>>> Return primary keys when using blocks or values
230234
## License
231235

232236
BulkInsert is released under the MIT license (see MIT-LICENSE) by

0 commit comments

Comments
 (0)