#' DB Connection
#'
#' @description
#' Use RPostgres::Posgres() driver
#'
#' @param host
#' @param dbname
#' @param user
#' @param password
#' @param port
#' @export
rpostgres_connection <- function(host,
dbname,
user,
password,
port) {
check_pkg("RPostgres")
dbConnect(RPostgres::Postgres(),
host = host,
dbname = dbname,
user = user,
password = password,
port = port,
bigint = "numeric")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.