inst/rstudio/connections/sqlpetr.R

library(sqlpetr)
# defaults for the "sql-pet" container with "dvdrental" database
# change the parameter values for your own database configuration
connection <- sp_get_postgres_connection(
  user = "postgres",
  password = "postgres",
  dbname = "dvdrental",
  host = "localhost",
  port = 5439,
  seconds_to_test = 30,
  connection_tab = TRUE
)
smithjd/sqlpetr documentation built on Feb. 29, 2020, 8:15 p.m.