Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Graphviz dot to generate ER diagram .png #17

Merged
merged 4 commits into from
May 30, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README.md
k1LoW committed May 30, 2018
commit 4099d7d18f68a2591850cfad8f8077366fcacb84
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -41,6 +41,8 @@ Use "tbls [command] --help" for more information about a command.
$ tbls doc postgres://user:pass@hostname:5432/dbname ./dbdoc
```

If you can use `dot` command, `tbls doc` generate ER diagram images.

Sample [document](sample/postgres/) and [schema](test/pg.sql).

### Diff database schema and document
@@ -51,6 +53,8 @@ Sample [document](sample/postgres/) and [schema](test/pg.sql).
$ tbls diff postgres://user:pass@hostname:5432/dbname ./dbdoc
```

**Notice:** `tbls diff` shows the difference Markdown documents only.

## Integration with CI tools

1. Commit document using `tbls doc`.