flag.StringVar(&cfg,"cfg","config/cfg.toml","configuration file which describes usecase and data format.")
flag.StringVar(&cases,"cases","sensor_info","usecase for dataset to be imported. Multiple choices can be separated by comma, for example, -cases sensor_info,camera_detection.")
flag.StringVar(&cfg,"cfg","config/cfg.toml","configuration file which describes useCase and data format.")
flag.StringVar(&cases,"cases","sensor_info","useCase for dataset to be imported. Multiple choices can be separated by comma, for example, -cases sensor_info,camera_detection.")
flag.IntVar(&hnum,"hnum",100,"magnification factor of the sample tables. For example, if hnum is 100 and in the sample data there are 10 tables, then 10x100=1000 tables will be created in the database.")
flag.IntVar(&vnum,"vnum",1000,"copies of the sample records in each table. If set to 0,this program will never stop simulating and importing data even if the timestamp has passed current time.")
flag.Int64Var(&delay,"delay",DEFAULT_DELAY,"the delay time interval(millisecond) to continue generating data when vnum set 0.")
flag.Int64Var(&delay,"delay",DefaultDelay,"the delay time interval(millisecond) to continue generating data when vnum set 0.")
flag.Int64Var(&tick,"tick",2000,"the tick time interval(millisecond) to print statistic info.")
flag.IntVar(&save,"save",0,"whether to save the statistical info into 'statistic' table. 0 is disabled and 1 is enabled.")
flag.StringVar(&saveTable,"savetb",DEFAULT_STATISTIC_TABLE,"the table to save 'statistic' info when save set 1.")
flag.StringVar(&saveTable,"savetb",DefaultStatisticTable,"the table to save 'statistic' info when save set 1.")
flag.IntVar(&thread,"thread",10,"number of threads to import data.")
flag.IntVar(&batch,"batch",100,"rows of records in one import batch.")
flag.IntVar(&auto,"auto",0,"whether to use the starttime and interval specified by users when simulating the data. 0 is disabled and 1 is enabled.")
flag.StringVar(&starttimestr,"start","","the starting timestamp of simulated data, in the format of yyyy-MM-dd HH:mm:ss.SSS. If not specified, the ealiest timestamp in the sample data will be set as the starttime.")
flag.Int64Var(&interval,"interval",DEFAULT_INTERVAL,"time inteval between two consecutive records, in the unit of millisecond. Only valid when auto is 1.")
flag.IntVar(&auto,"auto",0,"whether to use the startTime and interval specified by users when simulating the data. 0 is disabled and 1 is enabled.")
flag.StringVar(&startTimeStr,"start","","the starting timestamp of simulated data, in the format of yyyy-MM-dd HH:mm:ss.SSS. If not specified, the earliest timestamp in the sample data will be set as the startTime.")
flag.Int64Var(&interval,"interval",DefaultInterval,"time interval between two consecutive records, in the unit of millisecond. Only valid when auto is 1.")
flag.StringVar(&host,"host","127.0.0.1","tdengine server ip.")
flag.IntVar(&port,"port",6030,"tdengine server port.")
flag.StringVar(&user,"user","root","user name to login into the database.")
flag.StringVar(&password,"password","taosdata","the import tdengine user password")
flag.IntVar(&dropdb,"dropdb",0,"whether to drop the existing datbase. 1 is yes and 0 otherwise.")
flag.IntVar(&dropdb,"dropdb",0,"whether to drop the existing database. 1 is yes and 0 otherwise.")
flag.StringVar(&db,"db","","name of the database to store data.")
flag.StringVar(&dbparam,"dbparam","","database configurations when it is created.")