Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"merge" mode? #51

Open
aledalgrande opened this issue Apr 14, 2013 · 1 comment
Open

"merge" mode? #51

aledalgrande opened this issue Apr 14, 2013 · 1 comment

Comments

@aledalgrande
Copy link

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

@stmichael
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants