View source: R/db_connect_ecotaxa.R
db_connect | R Documentation |
Connect to and disconnect from the EcoTaxa database (in read-only mode and only from the local network of the machine running EcoTaxa).
db_connect(host = NULL, dbname = NULL, user = NULL, password = NULL, ...)
db_connect_ecotaxa(...)
db_connect_ecopart(...)
db_disconnect(x)
db_disconnect_ecotaxa(x)
db_disconnect_ecopart(x)
src_ecotaxa()
host |
URL of the machine hosting EcoTaxa; when NULL, the default, the function will try the URLs of the various hosts in domain obs-vlfr.fr. |
dbname |
name of the database to connect to. |
user |
name of a user that has read-only access to the database. |
password |
password of that user. |
... |
passed to |
x |
a database connection created by |
An object of class RPostgreSQL::PostgreSQLConnection-class()
.
db <- db_connect_ecotaxa()
db
db_disconnect_ecotaxa(db)
# NB: always disconnect after use. Leaving open connections clobbers the server
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.