File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,23 @@ DB: bety
4343You can run the entire database locally, with daily imports:
4444
4545``` sh
46- docker run --name betydb -p 5432:5432 terraref/betydb-postgis
46+ docker run --name bety -p 5432:5432 terraref/betydb-postgis
4747```
4848
49- Now it will appear that you have the entire trait database running at localhost on port 5432 just like if it were installed on your system!
49+ Now it will appear that you have the entire trait database running at localhost on port 5432 just like if it were installed on your system!
50+
51+
52+ ``` {r eval=FALSE}
53+ library(RPostgreSQL)
54+ dbcon <- dbConnect(RPostgreSQL::PostgreSQL(),
55+ dbname = "bety",
56+ password = 'bety',
57+ host = 'localhost',
58+ user = 'bety',
59+ port = 5432)
60+ ```
61+
62+
63+
64+ > #```{sql connection = dbcon, eval=FALSE, }
65+ > #```
You can’t perform that action at this time.
0 commit comments