src_postgres: Setup a PostgreSQL database connection
Description
Setup a PostgreSQL database connection
Usage
src_postgres(dbname = "test", host = "localhost", port = 5432L, ...)
Arguments
- dbname
(character) name of database,
has to exist to open a connection
- host
(character) host of the database,
see RPostgres::Postgres()
- port
(integer) port of the database,
see RPostgres::Postgres()
- ...
additional named parameters passed
on to RPostgres::Postgres()
Details
uses RPostgres under the hood
Examples
Run this codeif (FALSE) {
con <- src_postgres()
print(con)
}
Run the code above in your browser using DataLab