README.md 1.9 KB
Newer Older
sangshuduo's avatar
sangshuduo 已提交
1 2 3 4 5 6 7 8 9 10
install build environment
===
yum/apt install mono-complete

build C# version taosdemo
===
mcs -out:taosdemo *.cs

run C# version taosdemo
===
sangshuduo's avatar
sangshuduo 已提交
11 12
Usage: mono taosdemo.exe [OPTION...]

13 14
        --help            Show usage.

sangshuduo's avatar
sangshuduo 已提交
15 16 17 18 19
        -h                host, The host to connect to TDengine. Default is localhost.
        -p                port, The TCP/IP port number to use for the connection. Default is 0.
        -u                user, The user name to use when connecting to the server. Default is 'root'.
        -P                password, The password to use when connecting to the server. Default is 'taosdata'.
        -d                database, Destination database. Default is 'test'.
20
        -a                replica, Set the replica parameters of the database, Default 1, min: 1, max: 5.
sangshuduo's avatar
sangshuduo 已提交
21 22
        -m                table_prefix, Table prefix name. Default is 't'.
        -M                stable, Use super table.
23
        -s                stable_prefix, STable prefix name. Default is 'st'
sangshuduo's avatar
sangshuduo 已提交
24 25
        -T                num_of_threads, The number of threads. Default is 10.
        -r                num_of_records_per_req, The number of records per request. Default is 1000.
26 27
        -t                num_of_tables, The number of tables. Default is 1.
        -n                num_of_records_per_table, The number of records per table. Default is 1.
sangshuduo's avatar
sangshuduo 已提交
28 29 30 31 32 33 34
        -c                config_directory, Configuration directory. Default is '/etc/taos/'.
        -x                flag, Insert only flag.
        -O                order, Insert mode--0: In order, 1: Out of order. Default is in order.
        -R                rate, Out of order data's rate--if order=1 Default 10, min: 0, max: 50.
        -D                Delete data methods 0: don't delete, 1: delete by table, 2: delete by stable, 3: delete by database.
        -v                Print verbose output
        -y                Skip read key for continous test, default is not skip