create_connection: Create a DBI or pool connection to a database.

Description Usage Arguments

View source: R/dbconnectr.R

Description

Create a DBI or pool connection to a database.

Usage

1
2
3
4
5
create_connection(dbname = "main-app", cache = FALSE,
  cache_folder = "~/.datacamp", profile = NULL, region = NULL, ...)

create_connection_pool(dbname = "main-app", cache = FALSE,
  cache_folder = "~/.datacamp", profile = NULL, region = NULL, ...)

Arguments

dbname

character string specifying the database you want to connect to. Use get_databases to get a list of available databases.

cache

boolean that specifies whether or not to fetch and store the credentials in a local cache.

cache_folder

if caching is enabled, where to store and fetch the credentials

profile

AWS profile to use to fetch the credentials

region

AWS region to use to fetch the credentials

...

Extra arguments passed to dbConnect or dbPool


datacamp/dbconnectr documentation built on Nov. 30, 2021, 1:53 a.m.