Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
zendata
提交
6edef981
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,发现更多精彩内容 >>
提交
6edef981
编写于
5月 28, 2020
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update doc
上级
fcf8b172
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
56 addition
and
25 deletion
+56
-25
demo/base.yaml
demo/base.yaml
+14
-0
demo/inherit.yaml
demo/inherit.yaml
+7
-0
demo/numb.yaml
demo/numb.yaml
+4
-2
demo/output.txt
demo/output.txt
+14
-14
demo/test.yaml
demo/test.yaml
+2
-1
res/doc/sample.txt
res/doc/sample.txt
+15
-8
未找到文件。
demo/
default
.yaml
→
demo/
base
.yaml
浏览文件 @
6edef981
...
...
@@ -5,18 +5,10 @@ version: 1.0
fields
:
-
field
:
field1
note
:
测试自定义字段
note
:
引用同级目录中的yaml文件,取small和large两个分组的值
from
:
numb.yaml
use
:
small,large
-
field
:
field2
note
:
测试系统字段 in default
from
:
system.ip.v1.yaml
use
:
privateC,privateB
loop
:
2
-
field
:
field3
note
:
测试Excel数据
from
:
system.address.v1.city
select
:
name
where
:
state like '%山东%'
\ No newline at end of file
loop
:
3
loopfix
:
"
|"
prefix
:
"
["
postfix
:
"
]"
\ No newline at end of file
demo/inherit.yaml
0 → 100644
浏览文件 @
6edef981
title
:
test
desc
:
This is a test file.
author
:
zentao
version
:
1.0
fields
:
-
field
:
field1
demo/numb.yaml
浏览文件 @
6edef981
...
...
@@ -4,9 +4,11 @@ author: wwccss
version
:
1.0
field
:
number
prefix
:
int_
prefix
:
"
'"
postfix
:
"
'"
loop
:
2
loopfix
:
"
-"
ranges
:
small
:
1-9
medium
:
11-99
large
:
10001-99999
postfix
:
"
,"
demo/output.txt
浏览文件 @
6edef981
int_1
,|int_2,|int_3,
int_4
,|int_5,|int_6,
int_7
,|int_8,|int_9,
int_1
,|int_2,|int_3,
int_4
,|int_5,|int_6,
int_10001
,|int_10002,|int_10003,
int_10004
,|int_10005,|int_10006,
int_10007
,|int_10008,|int_10009,
int_10010
,|int_10011,|int_10012,
int_10013
,|int_10014,|int_10015,
int_1
,|int_2,|int_3,
int_4
,|int_5,|int_6,
int_7
,|int_8,|int_9,
int_1
,|int_2,|int_3,
int_1
-int_2-int_3
int_4
-int_5-int_6
int_7
-int_8-int_9
int_1
-int_2-int_3
int_4
-int_5-int_6
int_10001
-int_10002-int_10003
int_10004
-int_10005-int_10006
int_10007
-int_10008-int_10009
int_10010
-int_10011-int_10012
int_10013
-int_10014-int_10015
int_1
-int_2-int_3
int_4
-int_5-int_6
int_7
-int_8-int_9
int_1
-int_2-int_3
demo/test.yaml
浏览文件 @
6edef981
...
...
@@ -13,7 +13,8 @@ fields:
from
:
numb.yaml
use
:
small,large
loop
:
3
loopfix
:
"
|"
loopfix
:
"
-"
postfix
:
"
,"
expect
:
1,2,3,101,102...
-
field
:
field2
...
...
res/doc/sample.txt
浏览文件 @
6edef981
$>zd.exe -s 根据系统提示,设置工具语言属性。
$>zd.exe -s 根据系统提示,设置工具语言等属性。
$>zd.exe -h 查看使用帮助。
$>zd.exe -y demo/test.yaml -c 15 -field field1 -o demo/output.txt -f text
执行数据生成命令。使用配置文件demo/test.yaml,生成15行数据,以text格式的输出到demo/output.txt文件中。
$>zd.exe -d demo/common.yaml -y demo/test.yaml -c 15 -field field1 -o demo/output.txt -f sql -t table_name
生成SQL格式的输出,表名为table_name。使用文件demo/test.yam覆盖默认配置demo/common.yaml中的内容。
$>zd.exe -y demo/test.yaml -c 15 -field field1 -o demo/insert.sql -f sql -t table_name
执行数据生成命令。以SQL语句形式输出到demo/insert.sql文件中,表名为table_name。
$>zd.exe -d demo/base.yaml -y demo/test.yaml -c 15 -field field1 -o demo/output.txt
执行数据生成命令。使用文件demo/test.yam覆盖默认配置demo/common.yaml中的内容。
$>zd.exe -i xdoc/test/zentao.sql -o out
从指定的数据库Schema创建yaml定义文件,输出到out目录下。
\ No newline at end of file
从指定的数据库Schema,创建yaml定义文件,输出到out目录下。
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录