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

dbBind with a data frame #106

Closed
gaborcsardi opened this issue May 26, 2016 · 3 comments
Closed

dbBind with a data frame #106

gaborcsardi opened this issue May 26, 2016 · 3 comments

Comments

@gaborcsardi
Copy link

Is it possible? E.g.

UPDATE tab SET col1 = $value WHERE col2 = $key;

and then bind it to a two-column data frame.
It would be great to have sg like this.

@krlmlr
Copy link
Member

krlmlr commented Jun 14, 2016

I think this shouldn't be the responsibility of dbBind(), but I can imagine a wrapper that repeatedly calls dbBind(). I know RMySQL currently has this, but it probably should go in the long run.

@gaborcsardi
Copy link
Author

gaborcsardi commented Jun 14, 2016

OK. I also realize that this is hard if the engine does not support it, and I don't know any that do. MySQL supports bulk inserts, but not updates AFAIR.

@krlmlr
Copy link
Member

krlmlr commented Oct 1, 2016

Multi-row bind will be supported: r-dbi/DBItest#96.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants