Skip to content
/ erd-go Public
forked from kaishuu0123/erd-go

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

License

Notifications You must be signed in to change notification settings

ray-g/erd-go

 
 

Repository files navigation

erd-go

This is forked from https://github.com/kaishuu0123/erd-go and added following:

  1. Support ? as {0,1} in relations
  2. Added colors segment to manage color palette see: simple example
  3. Changed to use <github.com/kevinburke/go-bindata> since the original bin-data is not maintained
  4. Add support label to name
  5. Add support special characters in table name, such as [Users.Profile]
  6. Use horizontal layout for isolated nodes
  7. Integrate with dot output

install this go-bindata by go get -u -v github.com/kevinburke/go-bindata/...

Get binary from this releases page. Build Status

===

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:

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 91.2%
  • Makefile 6.9%
  • Dockerfile 1.9%