Description Usage Arguments Value Examples
Fetch credentials from Consul K/V store and establish connection to database.
Required values for respective database:
MySQL
- username, password, host, port, database
MongoDB
- username, password, host, port, database, collection
1 2 3 | est_mysql_conn(db, drv = MySQL())
est_mongo_conn(db)
|
db |
Database to connect to |
drv |
Driver (MySQL only). Default RMySQL::MySQL |
Database connection if successful.
1 2 3 4 5 | ## Not run:
est_mysql_conn('mysql_database')
est_mongo_conn('mongo_database')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.