Вопрос

I would like to use the dplyr package in R but to connect to a remote database that is SSL-encrypted. How do I set up a workaround here? I'm thinking of setting up a backend that uses the RODBC package. Is this possible?

Это было полезно?

Решение

Actually you can connect to a an SSL-encrypted connection with dplyr and it's easy.

You just need to pass the parameters for your connection within the dbname parameter, like this (this is a postgresql example):

db <- src_postgres(dbname="dbname=my_db sslcert=my_cert.crt sslkey=my_key.key sslmode=require", user="username", host="your.host.com")
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top