README.md in upsert-1.2.0 vs README.md in upsert-2.0.0
- old
+ new
@@ -64,13 +64,20 @@
## Wishlist
Pull requests for any of these would be greatly appreciated:
1. Cache JDBC PreparedStatement objects.
-1. Allow "true" upserting like `upsert.row({name: 'Jerry'}, counter: Upsert.sql('counter+1'))`
1. Sanity check my three benchmarks (four if you include activerecord-import on MySQL). Do they accurately represent optimized alternatives?
1. Provide `require 'upsert/debug'` that will make sure you are selecting on columns that have unique indexes
1. Test that `Upsert` instances accept arbitrary columns, even within a batch, which is what people probably expect.
+1. [@antage](https://github.com/antage)'s idea for "true" upserting: (from https://github.com/seamusabshere/upsert/issues/17)
+
+```ruby
+selector = { id: 15 }
+update_setter = { count: Upsert.sql('count + 1') }
+insert_setter = { count: 1 }
+upsert.row_with_two_setter(update_setter, insert_setter, selector)
+```
## Real-world usage
<p><a href="http://brighterplanet.com"><img src="https://s3.amazonaws.com/static.brighterplanet.com/assets/logos/flush-left/inline/green/rasterized/brighter_planet-160-transparent.png" alt="Brighter Planet logo"/></a></p>