Skip to content

Commit

Permalink
Update dbConnection.R
Browse files Browse the repository at this point in the history
Require SSL connection to mysql database, but do not verify certificate
  • Loading branch information
sighanse authored Jun 5, 2024
1 parent 4114238 commit b696824
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/dbConnection.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ rapOpenDbConnection <- function(registryName, dbType = "mysql") {
host = conf$host,
user = conf$user,
password = conf$pass,
bigint = "integer"
bigint = "integer",
client.flag = CLIENT_SSL, # Request SSL connection

Check warning on line 33 in R/dbConnection.R

View workflow job for this annotation

GitHub Actions / lint

file=R/dbConnection.R,line=33,col=21,[object_usage_linter] no visible binding for global variable 'CLIENT_SSL'
ssl.verify = FALSE # Disable SSL verification
)
# ensure utf8 encoding
invisible(DBI::dbExecute(con, "SET NAMES utf8;"))
Expand Down

0 comments on commit b696824

Please sign in to comment.