Giter Site home page Giter Site logo

mysqldoc's Introduction

mysqldoc

  • Mysql 用のDB定義書出力スクリプト。
  • bin/config.sh に記載された接続先のDBのテーブル定義をHTMLにて出力する。
  • DB名 mysql | information_schema | performance_schema | tmp は出力対象外。
  • AWS Aurora などでも使えます。

使い方

  • bin/config.sh の設定を適宜変更する
  • sh bin/mysqldoc.sh を実行する

テーブル/カラムの説明文について

  • Mysql のテーブルコメント/カラムコメントを参照しています。

テーブルコメントのつけかた

alter table TABLE_NAME comment 'テーブル名';

カラムコメントのつけかた

create table TABLE_NAME (
  id INTEGER(10) primary key comment 'ID',
  data varchar(50) comment 'データ'
);

または

alter table TABLE_NAME modify id INTEGER(10) comment 'ID';
alter table TABLE_NAME modify data varchar(50) comment 'データ';

注意点

  • 改行を入れたい場合には html タグで記述してください

ex)

create table TABLE_NAME (
    gender INTEGER(1) primary key comment '性別<br>1: 男性<br>2: 女性',        
);

mysqldoc's People

Watchers

James Cloos avatar Taisuke Shiratori 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.