inst/doc/setup.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## -----------------------------------------------------------------------------
#  library(DBI)
#  con1 <- dbConnect(odbc::odbc(), driver = "PostgreSQL Driver")
#  con2 <- dbConnect(odbc::odbc(), driver = "SQLite Driver")

## -----------------------------------------------------------------------------
#  library(DBI)
#  con <- dbConnect(
#    odbc::odbc(),
#    driver = "PostgreSQL Driver",
#    database = "test_db",
#    username = "postgres",
#    password = Sys.getenv("PASSWORD"),
#    host = "localhost",
#    port = 5432
#  )

## -----------------------------------------------------------------------------
#  con <- dbConnect(odbc::odbc(), dsn = "test_db")

Try the odbc package in your browser

Any scripts or data that you put into this service are public.

odbc documentation built on June 22, 2024, 9:47 a.m.