This is forked from https://github.com/kaishuu0123/erd-go and added following:
- Support
?
as{0,1}
in relations - Added
colors
segment to manage color palette see: simple example - Changed to use <github.com/kevinburke/go-bindata> since the original
bin-data
is not maintained - Add support
label
to name - Add support special characters in table name, such as
[Users.Profile]
- Use horizontal layout for isolated nodes
- Integrate with
dot
output
install this go-bindata
by go get -u -v github.com/kevinburke/go-bindata/...
Get binary from this releases page.
Translates a plain text description of a relational database schema to a graphical entity-relationship diagram.(convert to dot file)
get binary from releases page.
or
go get github.com/kaishuu0123/erd-go
or (for Mac)
brew tap kaishuu0123/erd-go
brew install erd-go
Usage:
erd-go [OPTIONS] PATTERN [PATH]
Application Options:
-i, --input= input will be read from the given file.
-o, --output= output will be written to the given file.
Help Options:
-h, --help Show this help message
support input from STDIN.
cat examples/nfldb.er | erd-go
ex.) convert to png from dot (use dot command)
cat examples/nfldb.er | erd-go | dot -Tpng -o nfldb.png
- install glide
go get github.com/Masterminds/glide
- install go-bindata
go get github.com/jteeuwen/go-bindata
- install peg
go get github.com/pointlander/peg
- make
make
MIT
This work is based off of several existing projects: