redshift_connection: Connect to an FT Redshift cluster

Description Usage Arguments Value Examples

View source: R/redshift_connect.R

Description

Creates a Redshift connection object.

Usage

1
redshift_connection(cluster_name, username, password)

Arguments

cluster_name

The Redshift cluster you wish to connect to. Can be one of "prod", "int" or "int2".

username

Your Redshift username

password

Your Redshift password

Value

A Redshift connection object.

Examples

1
2
3
4
5
6
7
8
## Not run: 
ft_redshift_connection <- redshift_connection(
  cluster_name = "prod",
  rstudioapi::askForPassword("Database user"),
  rstudioapi::askForPassword("Database password")
 )

## End(Not run)

Financial-Times/ftRtools documentation built on Oct. 29, 2021, 9:59 a.m.