View source: R/database-redshift.R
aws_db_redshift_con | R Documentation |
Get a database connection to Amazon Redshift
aws_db_redshift_con(
user,
pwd,
id = NULL,
host = NULL,
port = NULL,
dbname = NULL,
...
)
user , pwd , host , port , dbname , ... |
named parameters passed on to
DBI::dbConnect. Note that
the |
id |
(character) Cluster identifier. If you supply |
The connection returned is created using RPostgres
You can manage Redshift programatically via paws::redshift
an object of class RedshiftConnection
Other database:
aws_db_cluster_status()
,
aws_db_instance_status()
,
aws_db_rds_con()
,
aws_db_rds_create()
,
aws_db_rds_list()
,
aws_db_redshift_create()
## Not run:
library(DBI)
library(RPostgres)
con_rshift <- aws_db_redshift_con("<define all params here>")
con_rshift
library(RPostgres)
dbListTables(con_rshift)
dbWriteTable(con_rshift, "mtcars", mtcars)
dbListTables(con_rshift)
library(dplyr)
tbl(con_rshift, "mtcars")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.