MySQL命令行工具开发 2021-01-06
MySQL命令行工具开发 2021-01-06
# ./gosqltree --help
sqltree version: 1.0.0
Usage: sqltree [--sql sqltext] [--all] [--id] [--element] [--origin] [--pretty]
Options:
-all
Print ALL.
-element
Print SQL element.
-id
Print SQL ID.
-origin
Print the original SQL syntax tree.
-pretty
Print pretty JSON.
-sql string
SQL text.
# ./gobigdrop --help
gobigdrop version: 1.0.0
Usage: gobigdrop [--host host] [--port port] [--user user] [--password password] [--db database] [--table table] [--log logfile] [--level loglevel] [--askpass]
Options:
-askpass
ask MySQL password.
-db string
MySQL database.
-host string
MySQL host.
-level string
gobigdrop log level. (default "INFO")
-log string
gobigdrop log file. (default "os.Stdout")
-password string
MySQL password.
-port int
MySQL port. (default 3306)
-table string
MySQL table.
-user string
MySQL user.
- 原文作者:Ben2277
- 原文链接:https://ben2277.github.io/post/2021-01-06-tools-development-log/
- 版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。