Where to check all copy_to() parameters?

When copying local tibbles to a remote data source, copy_to() is a very handy tool; however, I don't know how to specify many options, such as data types, primary keys etc. In a introduction document, we learned a parameter "indexes" that allows us to specify indexes.

But where are all other parameters? I cannot find a complete list anywhere. Do I need to check the source code? If so, how do I do it?

Thank you!

Hi, I believe that types are the only other argument you can pass, here is the location of that code in dbplyr: https://github.com/tidyverse/dbplyr/blob/c0e51957a2fbeb4fe7bc93f0ed677d6d33e14828/R/db-compute.R


Thank you! I also learned from your link how to look for source code. Your help appreciated!

1 Like