data-import icon indicating copy to clipboard operation
data-import copied to clipboard

"merge" mode?

Open aledalgrande opened this issue 11 years ago • 1 comments

Hi, I'm really enjoying using this library, makes my life easier. One thing I'm not sure though, is if any "merge" mode exists, because default or :unique create new records and :update, well updates. But there is no mode for "insert if not existing, otherwise update".

Is this supported?

Thanks

aledalgrande avatar Apr 14 '13 20:04 aledalgrande

Hi, I'm really happy to hear that. Unfortunately what you seek doesn't exist yet. The supported modes are create, update and unique. In the past I had no use for the mode you describe above. But you're welcome to collaborate on this library. Put your code in a pull request and I take a look at it. I'd really appreciate that.

stmichael avatar Apr 15 '13 05:04 stmichael