Skip to content

Commit ca58b0f

Browse files
committed
Update README.md
1 parent 4ba12a8 commit ca58b0f

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
- [Changelog](#changelog)
1414

1515
## 特性
16-
- 支持将数据库(当前仅支持`MySQL`)及其表结构的元数据以`text``markdown``json``csv`形式输出。
16+
- 支持将数据库(当前仅支持`MySQL`)及其表结构的元数据以`text``markdown``json``csv``xlsx`形式输出。
1717

1818

1919
## 安装
2020
- 源代码安装
2121
```shell
22-
$ GO111MODULE=on go get -u -v github.com/voidint/tsdump@v0.4.2
22+
$ GO111MODULE=on GOPROXY=https://goproxy.cn go install -v github.com/voidint/tsdump@v0.5.0
2323
```
2424
- 二进制安装
2525

@@ -36,7 +36,7 @@ USAGE:
3636
tsdump [OPTIONS] [database [table ...]]
3737

3838
VERSION:
39-
0.4.2
39+
0.5.0
4040

4141
AUTHOR:
4242
voidint <voidint@126.com>
@@ -48,13 +48,14 @@ OPTIONS:
4848
-S value, --socket value socket file to use for connection
4949
-u value, --user value user for login if not current user (default: "voidint")
5050
-p value, --password value password to use when connecting to server. If password is not given it's solicited on the tty.
51-
-V value, --viewer value output viewer. Optional values: txt|csv|json|md (default: "txt")
51+
-V value, --viewer value output viewer. Optional values: csv|json|md|xlsx|txt (default: "txt")
5252
-o value, --output value write to a file, instead of STDOUT
53+
-s, --sorted sort table columns
5354
--help show help
5455
--version, -v print the version
5556
5657
COPYRIGHT:
57-
Copyright (c) 2017-2020, voidint. All rights reserved.
58+
Copyright (c) 2017-2021, voidint. All rights reserved.
5859
```
5960
6061
- 使用`root`用户创建一个名为`mydb`的数据库实例,以及一张`student`的表。
@@ -147,6 +148,10 @@ COPYRIGHT:
147148
148149
149150
## Changelog
151+
### 0.5.0 - 2021/11/16
152+
- 支持以`xlsx`视图方式导出表结构数据。[#27](https://github.com/voidint/tsdump/issues/27)
153+
- 新增`-s`选项以支持对数据库、表、字段按字典序排列。[#28](https://github.com/voidint/tsdump/issues/28)
154+
150155
### 0.4.2 - 2020/05/22
151156
- 更新依赖(xorm)避免`go get`编译错误
152157

0 commit comments

Comments
 (0)