planter

command module
v0.0.0-...-a3c2124 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 15 Imported by: 0

README

planter

🥺 Reference from https://github.com/achiku/planter

🤪 Help

planter --help

usage: planter [<flags>] <conn>

Flags:
      --help                 Show context-sensitive help (also try --help-long
                             and --help-man).
  -d, --driver="mysql"       driver mysql/postgres, Default mysql
  -s, --schema="public"      PostgreSQL schema name
  -o, --output=OUTPUT        output file path
  -t, --table=TABLE ...      target tables
  -x, --exclude=EXCLUDE ...  target tables
  -T, --title=TITLE          Diagram title
      --svg                  gen svg

feature

✌️ add MySQL generation for corresponding PlantUML (MySQL is the default driver)

planter --driver mysql  root:123456@tcp(127.0.0.1:3306)/test -o test.uml
# use PostgreSQL
planter --driver postgres  ...

✌️ add foreign key analysis (if your database doesn't have foreign keys).

✌️ add SVG generation

🤪 Installation

go install github.com/maocatooo/planter@latest

🤪 Generate PlantUML

planter root:123456@tcp(127.0.0.1:3306)/test -o test.uml

🤪 Generate SVG

planter root:123456@tcp(127.0.0.1:3306)/test -o test.svg --svg

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL