Giter Site home page Giter Site logo

databasedocgenerater's Introduction

数据库文档生成器

程序从mysql数据库中读取库的信息和表的信息, 选择制定的库生成数据库文档, 数据库定义中的注释请使用comment关键词, 不然无法保存到文档中.

例如如下DDL

DROP TABLE IF EXISTS t_user;
CREATE TABLE t_user (
  `ID`             VARCHAR(20) PRIMARY KEY COMMENT '身份证号码',
  `name`           VARCHAR(10)  NOT NULL COMMENT '姓名',
  `loginName`      VARCHAR(20)  NOT NULL UNIQUE COMMENT '登录名',
  `email`          VARCHAR(254) COMMENT '邮箱',
  `phone`          VARCHAR(25) COMMENT '电话'
)DEFAULT charset = "utf8" ENGINE = InnoDB COMMENT='系统中的用户表';

将会生成如下文档:

如果需要直接解析mysql DDL, 请实现DatabaseOpt接口, 解析后返回制定的数据结构即可

databasedocgenerater's People

Contributors

xanarry 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.