Description Usage Arguments Details Value
View source: R/postgresql_connection.R
By default, this function will read from the 'development' environment.
1 2 | postgresql_connection(database.yml, env = "development", verbose = TRUE,
strict = TRUE)
|
database.yml |
character. The location of the database.yml file to use. This could, for example, be directory from a Rails project. |
env |
character. What environment to use. The default is '"development"'. |
verbose |
logical. Whether or not to print messages indicating loading is in progress. |
Your database.yml should look like:
development: adapter: postgresql database: <name> host: <domain> port: <port #> username: <username> password: <password>
PqConnection representing the activated PostGreSQL connection.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.