Skip to content

Commit b7cffee

Browse files
committed
更新readme
1 parent 6e1e33e commit b7cffee

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

README.md

+55-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,55 @@
1-
# pydbdoc
1+
pydbdoc
2+
===================
3+
4+
从MySQL数据库读取表信息并转为markdown文档
5+
6+
Author: Bruce He <bruce@shbewell.com>
7+
8+
Version: `0.1`
9+
10+
Requirements
11+
-------------
12+
* Python(2.7,3.4,3.5,3.6)
13+
* pymysql
14+
15+
Installation
16+
------------
17+
`pydbdoc.py` 直接下载到相应代码目录下
18+
19+
Documentation
20+
-------------
21+
22+
### 使用方式
23+
```
24+
usage: pydbdoc.py [-h] [--host HOST] [--user USER] [--name NAME] [-p] [-f]
25+
[dest]
26+
27+
DB自文档化助手 0.1
28+
29+
positional arguments:
30+
dest 指定生成的文件地址 如:app/db.md
31+
32+
optional arguments:
33+
-h, --help show this help message and exit
34+
--host HOST 数据库地址
35+
--user USER 数据库用户名
36+
--name NAME 数据库名称
37+
-p, --password 使用数据库密码
38+
-f, --force 是否覆盖存在的md文件
39+
40+
```
41+
42+
43+
从本地`test`数据库导出数据表结构及信息
44+
45+
```
46+
python pydbdoc.py db.md --name test -p
47+
48+
```
49+
50+
51+
#### 输出的MD文档
52+
53+
[md.md][demo]
54+
55+
[demo]: https://github.com/brucehe3/pydbdoc/blob/master/db.md

0 commit comments

Comments
 (0)