Skip to content
Translates a plain text description of a relational database schema to a graphical entity-relationship diagram.(convert to dot file)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
templates
.gitignore
.travis.yml
Dockerfile
LICENSE
Makefile
README.md
erd.go
erd.peg
erd.peg.go
glide.lock
glide.yaml
parse.go
parse_test.go
templates_bindata.go

README.md

erd-go

Build Status Coverage Status

Translates a plain text description of a relational database schema to a graphical entity-relationship diagram.(convert to dot file)

ER diagram for nfldb

Install

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

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

Example

see examples directory

Build Instruction

  1. install glide
    go get github.com/Masterminds/glide
    
  2. install go-bindata
    go get github.com/jteeuwen/go-bindata
    
  3. install peg
    go get github.com/pointlander/peg
    
  4. make
    make
    

LICENSE

MIT

Credits

This work is based off of several existing projects:

You can’t perform that action at this time.