planter

Generate PlantUML ER diagram textual description from PostgreSQL tables

Github星跟蹤圖

planter

Build Status
GitHub license
Go Report Card

Generate PlantUML ER diagram textual description from PostgreSQL tables

Why created

A team with only software engineers doesn't need ER diagram that much as long as they have decent experience in Relational Database modeling. However, it becomes very helpful to have always-up-to-date ER diagram when marketing/promotion/operation teams consisting of those who are fluent in writing/reading SQL, join to the game.

PlantUML supports ER diagram in the latest version with this awesome pull request. The tool, planter, generates textual description of PlantUML ER diagram from pre-existing PostgreSQL tables, and makes it easy to share visual structure of relations with other teams.

Installation

go get -u github.com/achiku/planter

Quick Start

$ planter postgres://planter@localhost/planter?sslmode=disable -o example.uml
$ java -jar plantuml.jar -verbose example.uml

er diagram

Specify table names

planter postgres://planter@localhost/planter?sslmode=disable \ 
    -t order_detail \
    -t sku \
    -t product

Help

$ planter --help
usage: planter [<flags>] <conn>

Flags:
      --help             Show context-sensitive help (also try --help-long and --help-man).
  -s, --schema="public"  PostgreSQL schema name
  -o, --output=OUTPUT    output file path
  -t, --table=TABLE ...  target tables
  -x, --xtable=TABLE ... exclude target tables

Args:
  <conn>  PostgreSQL connection string in URL format

Test

install dependencies.

go get -u github.com/mattn/gom
gom install

setup database.

create database planter;
create user planter;

主要指標

概覽
名稱與所有者achiku/planter
主編程語言Go
編程語言Go (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2017-09-17 02:43:07
推送於2024-03-30 20:03:11
最后一次提交2024-01-23 15:57:11
發布數4
最新版本名稱0.3.0 (發布於 )
第一版名稱0.1.0 (發布於 )
用户参与
星數553
關注者數10
派生數52
提交數51
已啟用問題?
問題數16
打開的問題數4
拉請求數16
打開的拉請求數1
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?