-
Notifications
You must be signed in to change notification settings - Fork 111
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
dbWriteTable options #194
Comments
Codewise (assumnig the new parameter is called ignore.dupl):
|
Related #68 |
Thanks. Have you installed RMySQL from CRAN or from GitHub? |
Here is a simple modification to the existing 'dbWriteTable' method that adds ability to REPLACE (note the replace = FALSE argument):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First thank you for maintaining this important workhorse!
The options overwrite & append do not make sense to me. If we start looking at the append option in write.table and cat, append=T do exactly that and append=F will overwrite the file. In that context you dont need both.
The consept append may not make sense in a database (expect for a table without a primary key) since a database do not write to a table in the same way as a OS write to a file. The consept of primary key and unique key are very important in a database and will guarantee you that you don't exisitng 'value' to the table. this conspet is missing in a write-to-file context.
MySQL has (atleast) two methods for handeling duplicate values, namly INSERT IGNORE and REPLACE.
I would propose to exchange the append option with an option that dictate which method to use.
Regrds
The text was updated successfully, but these errors were encountered: