* adjust format.

上级 d23fdce0
......@@ -37,7 +37,7 @@ Command Line Examples:
$>zd.exe -d demo/default.yaml # Generate 10 lines of data according to the config file specified by -d.
$>zd.exe -c demo/default.yaml # Generate 10 lines of data according to the config file specified by -c.
$>zd.exe -c demo/default.yaml -r # Generate 10 lines of data according to the config file specified by -c recursively.
$>zd.exe -d demo/default.yaml -c demo/test.yaml -n 100 # Using the parameter of -c and -d at the same time.
$>zd.exe -d demo/default.yaml -c demo/test.yaml -n 100 # Using the parameter of -c and -d at the same time.
$>zd.exe -d demo/default.yaml -c demo/test.yaml -n 100 -o test.txt # Output data in original format.
$>zd.exe -d demo/default.yaml -c demo/test.yaml -n 100 -o test.json # Output data in JSON.
......@@ -45,20 +45,20 @@ $>zd.exe -d demo/default.yaml -c demo/test.yaml -n 100 -o test.xml # Output da
$>zd.exe -d demo/default.yaml -n 100 -o test.sql -t user # Output the sql inserted into the table user.
$>zd.exe -d demo/default.yaml -o test.sql -t user -s mysql --trim # Remove the prefix and postfix of every field.
$>zd.exe -i db.sql -o db # Generate YAML files for each table by parsing db.sql and store them in the db directory.
$>zd.exe -i demo/zentao.sql -o db # Generate YAML files for each table by parsing zentao.sql.
$>zd.exe -c demo/default.yaml -i test.txt --decode # Parse the file specified by -i according to the config of -d.
$>zd.exe -l List all build-in data types.
$>zd.exe -v system.address.v1 View data types in build-in Excel file system/address/v1.xlsx.
$>zd.exe -v system.address.v1.china View data items in Excel sheet "china".
$>zd.exe -v system.ip.v1.yaml View data items in build-in instances。
$>zd.exe -l # List all build-in data types.
$>zd.exe -v system.address.v1 # View data types in build-in Excel file system/address/v1.xlsx.
$>zd.exe -v system.address.v1.china # View data items in Excel sheet "china".
$>zd.exe -v system.ip.v1.yaml # View data items in build-in instances。
Service Example:
$zd.exe -p 80 -R d:\zd\config Listen port 80. Use d:\zd\config as the root.
$zd.exe -p 80 -R d:\zd\config # Listen port 80. Use d:\zd\config as the root.
Client Call:
$curl http://loclahost/?d=default.yaml&c=config.yaml&n=100&o=test.sql&t=user Specify the server config file via GET.
$curl http://loclahost/?default=default.yaml&output=test.sql&table=user Parameter names can be full.
$curl -d "default=...&config=...&lines=10" http://localhost/ The config can be uploaded via POST.
$curl http://loclahost/?d=default.yaml&c=config.yaml&n=100&o=test.sql&t=user # Specify the server config file via GET.
$curl http://loclahost/?default=default.yaml&output=test.sql&table=user # Parameter names can be full.
$curl -d "default=...&config=...&lines=10" http://localhost/ # The config can be uploaded via POST.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册