提交 6edef981 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

update doc

上级 fcf8b172
......@@ -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
title: test
desc: This is a test file.
author: zentao
version: 1.0
fields:
- field: field1
......@@ -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: ","
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
......@@ -13,7 +13,8 @@ fields:
from: numb.yaml
use: small,large
loop: 3
loopfix: "|"
loopfix: "-"
postfix: ","
expect: 1,2,3,101,102...
- field: field2
......
$>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 -i xdoc/test/zentao.sql -o out
从指定的数据库Schema创建yaml定义文件,输出到out目录下。
\ No newline at end of file
$>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 -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册