-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src_postgres needs to be deprecated everywhere #2688
Comments
@moki1202 This might be another good quick issue for you to tackle. Briefly, we want to replace calls like this: bety <- dplyr::src_postgres(dbname = dbparms$bety$dbname,
host = dbparms$bety$host,
user = dbparms$bety$user,
password = dbparms$bety$password) ...with the more general bety <- DBI::dbConnect(
RPostgres::Postgres(),
dbname = dbparms$bety$dbname,
host = dbparms$bety$host,
user = dbparms$bety$user,
password = dbparms$bety$password
)
con <- bety # This alias may be necessary to work with our legacy code |
@ashiklom ill take this issue into work after 3-4 days from now ...college exams going on rn. |
@ashiklom while solving the above issue I found out that the file base\db\vignettes\betydb_access.Rmd still uses the library(dplyr) function . should I fix that ? |
@ashiklom also the bottom line " con <- bety "...should this be " con <-bety$con " ? |
No --
No. The old function, |
I'm late to the conversation, sorry about that, but please note that unless
Even when |
Bug Description
src_postgres
usage is deprecated but looks like it was not grepped and replaced everywhere. It still lives in the codebase in some places, e.g. 1, 2, ...This is probably fine for majority of pecan users for now. But, for example, I use another port for the DB connection and these codes will not like that.
It is probably good to be consistent in how we open DB connection throughout the codebase anyway.
This is an issue to remind us to replace the remaining ones as well.
The text was updated successfully, but these errors were encountered: