{"avro",'v',0,0,"Dump apache avro format data file. By default, dump sql command sequence.",2},
{"start-time",'S',"START_TIME",0,"Start time to dump. Either epoch or ISO8601/RFC3339 format is acceptable. ISO8601 format example: 2017-10-01T00:00:00.000+0800 or 2017-10-0100:00:00:000+0800 or '2017-10-01 00:00:00.000+0800'",4},
{"end-time",'E',"END_TIME",0,"End time to dump. Either epoch or ISO8601/RFC3339 format is acceptable. ISO8601 format example: 2017-10-01T00:00:00.000+0800 or 2017-10-0100:00:00.000+0800 or '2017-10-01 00:00:00.000+0800'",5},
#if TSDB_SUPPORT_NANOSECOND == 1
{"precision",'C',"PRECISION",0,"Specify precision for converting human-readable time to epoch. Valid value is one of ms, us, and ns. Default is ms.",6},
#else
{"precision",'C',"PRECISION",0,"Use specified precision to convert human-readable time. Valid value is one of ms and us. Default is ms.",6},
#endif
{"data-batch",'B',"DATA_BATCH",0,"Number of data point per insert statement. Max value is 32766. Default is 1.",3},
{"max-sql-len",'L',"SQL_LEN",0,"Max length of one sql. Default is 65480.",3},
{"table-batch",'t',"TABLE_BATCH",0,"Number of table dumpout into one output file. Default is 1.",3},
...
...
@@ -281,8 +277,11 @@ typedef struct arguments {
boolwith_property;
boolavro;
int64_tstart_time;
charhumanStartTime[28];
int64_tend_time;
charhumanEndTime[28];
charprecision[8];
int32_tdata_batch;
int32_tmax_sql_len;
int32_ttable_batch;// num of table which will be dump into one output file.
...
...
@@ -296,6 +295,8 @@ typedef struct arguments {
booldebug_print;
boolverbose_print;
boolperformance_print;
intdbCount;
}SArguments;
/* Our argp parser. */
...
...
@@ -318,13 +319,17 @@ static void taosDumpCreateTableClause(STableDef *tableDes, int numOfCols,