multiple extraSettings for postgres #273
Labels
enhancement
New functionality that could be added
help wanted
Will probably not be addressed by the package maintainer, but could be addressed by someone else
Your R help file does not specify how to handle multiple extraSettings for postgres:
DatabaseConnector/man/connect.Rd
Lines 109 to 117 in bee58a3
nor does the related vignette or pdf document
looking at
DatabaseConnector/R/Connect.R
Line 479 in bee58a3
it appears that the connectPostgreSql function expects a single string for extraSettings, but the option separator is not specified. I had initially attempted
;
ala MS SQL, but I should have been using&
for postgres (similar to redshift).My request is, at the very least, please include a multi-parameter string for extraSettings for postgres in the help file. Ideally you could accept a character vector of length >1, rather than just a simple "string" and parse for the individual depending on the DBMS that they are using.
An example of this would be to modify
DatabaseConnector/R/Connect.R
Line 479 in bee58a3
to read
this will have no impact if
length(connectionDetails$extraSettings) == 1
, but iflength(...)>1
(andclass(connectionDetails$extraSettings) == 'character'
still) it will collapse it appropriatelyyou could then make similar changes for the other database types.
my current work-around is, when calling createConnectionDetails, to specify that
extraSettings = paste(c("sslmode=require","ssl=true","currentSchema=myschema"),collapse="&")
, but such a solution requires the end-user to know the correct separator for their RDMS connection string and is honestly no better than just setting the string to"sslmode=require&ssl=true¤tSchema=myschema"
directlyThe text was updated successfully, but these errors were encountered: