File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ go get github.com/holydocs/dberd
2929go install github.com/holydocs/dberd/cmd/dberd@latest
3030```
3131
32+ ### Docker
33+
34+ ``` bash
35+ docker pull ghcr.io/holydocs/dberd:latest
36+ ```
37+
3238## Supported Sources
3339
3440Currently, DBerd supports the following database sources:
@@ -115,6 +121,16 @@ dberd --source cockroach \
115121 --source-dsn " postgres://user@host:port/db?sslmode=disable"
116122```
117123
124+ Or using Docker:
125+ ``` bash
126+ docker run --rm -v $( pwd) :/work ghcr.io/holydocs/dberd:latest \
127+ --source cockroach \
128+ --target d2 \
129+ --format-to-file /work/schema.d2 \
130+ --render-to-file /work/schema.svg \
131+ --source-dsn " postgres://user@host:port/db?sslmode=disable"
132+ ```
133+
118134For example, if a Cockroach database has a schema like:
119135```
120136CREATE TABLE users (
You can’t perform that action at this time.
0 commit comments