Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
zendata
提交
988cb7b2
Z
zendata
项目概览
LinuxSuRen
/
zendata
与 Fork 源项目一致
Fork自
易企天创 / zendata
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zendata
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
988cb7b2
编写于
8月 10, 2020
作者:
Q
QingDao Nature Easy Soft Network Technology Co,LTD
提交者:
GitHub
8月 10, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
+ add demo commands for -r and --trim.
上级
92d51f8f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
3 deletion
+5
-3
res/zh/usage.txt
res/zh/usage.txt
+5
-3
未找到文件。
res/zh/usage.txt
浏览文件 @
988cb7b2
...
@@ -28,14 +28,16 @@ ZenData是一款通用的数据生成工具,您可以使用yaml文件来定义
...
@@ -28,14 +28,16 @@ ZenData是一款通用的数据生成工具,您可以使用yaml文件来定义
命令行模式举例:
命令行模式举例:
$>zd.exe -d demo\default.yaml 根据-d参数指定的配置文件生成10条记录。
$>zd.exe -d demo\default.yaml 根据-d参数指定的配置文件生成10条记录。
$>zd.exe -c demo\default.yaml 根据-c参数指定的配置文件生成10条记录。
$>zd.exe -c demo\default.yaml 根据-c参数指定的配置文件生成10条记录。
$>zd.exe -c demo\default.yaml -r 根据-c参数指定的配置文件,采用递归的方式生成10条记录。
$>zd.exe -d demo\default.yaml -c demo\test.yaml -n 100 -c和-d两个文件的配置合并,输出100条记录。
$>zd.exe -d demo\default.yaml -c demo\test.yaml -n 100 -c和-d两个文件的配置合并,输出100条记录。
$>zd.exe -d demo\default.yaml -c demo\test.yaml -n 100 -o test.txt 输出原始格式的数据。
$>zd.exe -d demo\default.yaml -c demo\test.yaml -n 100 -o test.txt 输出原始格式的数据。
$>zd.exe -d demo\default.yaml -c demo\test.yaml -n 100 -o test.json 输出json格式的数据。
$>zd.exe -d demo\default.yaml -c demo\test.yaml -n 100 -o test.json 输出json格式的数据。
$>zd.exe -d demo\default.yaml -c demo\test.yaml -n 100 -o test.xml 输出xml格式的数据。
$>zd.exe -d demo\default.yaml -c demo\test.yaml -n 100 -o test.xml 输出xml格式的数据。
$>zd.exe -d demo\default.yaml -n 100 -o test.sql -t user 输出插入到user表里面的sql。
$>zd.exe -d demo\default.yaml -n 100 -o test.sql -t user 输出插入到user表里面的sql。
$>zd.exe -d demo\default.yaml -n 100 -o test.sql -t user --trim 输出插入到user表里面的sql,去掉前缀和后缀。
$>zd.exe -i db.sql -o db 根据db.sql的定义生成每个表的yaml文件,存储到db目录里面。
$>zd.exe -i db.sql -o db 根据db.sql的定义生成每个表的yaml文件,存储到db目录里面。
$>zd.exe -c demo\default.yaml -i test.txt --decode 将-i指定的文件根据-d参数的配置进行解析。
$>zd.exe -c demo\default.yaml -i test.txt --decode 将-i指定的文件根据-d参数的配置进行解析。
...
@@ -53,4 +55,4 @@ $zd.exe -p 80 -R d:\zd\config 监听80端口,以d:\zd\config为根目录。
...
@@ -53,4 +55,4 @@ $zd.exe -p 80 -R d:\zd\config 监听80端口,以d:\zd\config为根目录。
$curl http://loclahost/?d=default.yaml&c=config.yaml&n=100&o=test.sql&t=user 通过GET方式指定服务器端配置文件。
$curl http://loclahost/?d=default.yaml&c=config.yaml&n=100&o=test.sql&t=user 通过GET方式指定服务器端配置文件。
$curl http://loclahost/?default=default.yaml&output=test.sql&table=user 参数名可以用全拼。
$curl http://loclahost/?default=default.yaml&output=test.sql&table=user 参数名可以用全拼。
$curl -d "default=...&config=...&lines=10" http://localhost/ 可以通过POST方式上传配置。
$curl -d "default=...&config=...&lines=10" http://localhost/ 可以通过POST方式上传配置。
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录