This a Python wrapper of the insert_many()
method of package pymongo to insert a list of documents as a collection in a database in MongoDB.
Arguments
- filepath
CSV file path.
- dbname
Database name.
- user
User name.
- password
Password.
- interpreter
Path of the Python interpreter (optional)
Examples
if (FALSE) {
library(innovar)
data("cars")
write.csv(cars, "cars.csv", row.names = FALSE)
dbname = "<database-name>"
user <- Sys.getenv("USER")
password <- Sys.getenv("PASSWORD")
export("cars.csv", dbname, user, password)
}