Create SQL table documents.
Usage:
table-doc [options] dir
Application Options:
--user=name User name (default: root (MySQL) | postgres (PostgreSQL))
--password=password User password (If not given, it's asked from the prompt)
--host=host-name Host name (default: 127.0.0.1)
--port=port Port number (default: 3306 (MySQL) | 5432 (PostgreSQL))
--socket=socket Socket file
--mysql MySQL data source
--postgres PostgreSQL data source
-h, --help Show this help
-s, --schema=schema-name Schema name
-f, --format=[html|bootstrap|markdown] Output format (default: bootstrap)
Override MYSQL_PWD
or PGPASSWORD
environment.
If not given and set any environment, it's asked from the prompt.
--schema=foofoo --schema=hogehoge
--schema=foofoo_test@foofoo
"foofoo" is alias name of "foofoo_test"
html
very simple htmlbootstrap
a little rich htmlmarkdown
at first build bootstrap and convert to markdown
execute following command
table-doc --mysql -s mysql -f markdown ./example
After table-doc
command, edit HTML of generated for memo. that memo keeps after regenerate HTML. (the markdown always converts from HTML. editing not apply)
- The schema memo is
data-table-doc="schema-memo"
attribute. - The table memo is
data-table-doc="table-memo"
attribute. - The column memo is
data-table-doc="column-memo"
attribute.