Description Usage Arguments Value Author(s) Examples
Creates an RJDBC connection to the Redshift cluster.
1 | redshift.connect(jdbcUrl, username, password, custom_driver = "default")
|
jdbcUrl |
The JDBC URL as specified in the Amazon AWS Management Console |
username |
The username to authenticate with |
password |
The password to authenticate with |
custom_driver |
Option to point to a custom PostgreSQL driver JAR. Class name must be "org.postgresql.Driver" |
RJDBC connection object
Paul Ingles
1 2 3 4 5 6 | require(redshift)
## connect to our cluster
#conn <- redshift.connect("jdbc:postgresql://blah.blah.eu-west-1.redshift.amazonaws.com:5439/data", "username", "password")
#conn <- redshift.connect("jdbc:postgresql://blah.blah.eu-west-1.redshift.amazonaws.com:5439/data", "username", "password","/home/myuser/psql/postgresql-9.2-1003.jdbc3.jar")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.