View source: R/connection_postgres.R
Adds the ability to re-try connections on failure and reads from pre-defined environment variables names.
1 2 3 4 5 6 7 8 |
POSTGRES_HOST |
for the host name |
POSTGRES_PORT |
for the port number |
POSTGRES_USER |
for the user name |
POSTGRES_PASSWORD |
for the password |
POSTGRES_DB |
for the name of the database on the host, or the database file name |
n_connection_tries |
Number of times to try connecting to PostgreSQL |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.