Skip to content

Commit 965ad16

Browse files
authored
updated / added information about installing BETYdb locally using docker (#38)
1 parent 3723051 commit 965ad16

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

traits/07-betydb-sql-access.Rmd

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,23 @@ DB: bety
4343
You 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+
> #```

0 commit comments

Comments
 (0)