GithubHelp home page GithubHelp logo

gaohueric / ddl2plantuml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wangyuheng/ddl2plantuml

0.0 1.0 0.0 9.69 MB

ddl转换为plantuml格式ER图

License: MIT License

Kotlin 94.00% Dockerfile 3.40% Shell 2.60%

ddl2plantuml's Introduction

Build Status Quality Gate Status Bugs Maintainability Rating

ddl2plantuml

ddl转换为plantuml格式ER图

Design

design diagram

程序会读取同目录的ddl.sql文件,并转换生成er.puml文件。

ER图效果

result diagram

Manual

指定sql文件地址,以及输出的plantuml文件地址

原生运行文件

根据系统选择不同的native程序

./ddl2plantuml_mac ./ddl.sql 

jar

mvn clean package -Dmaven.test.skip=true 
java -jar target/ddl2plantuml-1.1.0.jar -o ./er_by_jar.puml ./ddl.sql 

docker

DockerImage

打包docker镜像方便使用,需要指定volume用于读取sql文件,以及输出plantuml

docker run -e DDL='/mnt/data/ddl.sql' -e PLANTUML='/mnt/data/er_by_docker.puml' -v $(pwd):'/mnt/data' wangyuheng/ddl2plantuml:latest

Develop

通过 Graalvm 打包原生应用

  1. 安装Graalvm https://www.graalvm.org/docs/getting-started-with-graalvm/

  2. 打包jar

mvn clean package -Dmaven.test.skip=true 
  1. 生成native image
native-image -jar target/ddl2plantuml-1.1.0.jar ddl2plantuml

ddl2plantuml's People

Contributors

wangyuheng avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.