Skip to content

Commit

Permalink
Removal of RPostgres to support connection strings and use consistent…
Browse files Browse the repository at this point in the history
… approach
  • Loading branch information
azimov committed Jul 30, 2024
1 parent a3e3a1c commit 1fb0f18
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Suggests:
testthat (>= 3.0.0),
RSQLite,
duckdb,
RPostgres,
knitr,
rmarkdown,
keyring,
Expand Down
14 changes: 0 additions & 14 deletions R/PooledConnectionHandler.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,6 @@ requiredPackage <- function(packageName) {
dbname = cd$server()
)
},
"postgresql" = function(cd) {
requiredPackage("RPostgres")
host <- strsplit(cd$server(), "/")[[1]][1]
dbname <- strsplit(cd$server(), "/")[[1]][2]
list(
drv = RPostgres::Postgres(),
dbname = dbname,
host = host,
user = cd$user(),
port = cd$port(),
password = cd$password(),
options = "sslmode=require"
)
},
"duckdb" = function(cd) {
requiredPackage("duckdb")
list(
Expand Down

0 comments on commit 1fb0f18

Please sign in to comment.