()
| 625 | } |
| 626 | |
| 627 | func executeBatchStatement() { |
| 628 | var sqls = []string{"insert into root.ln.wf02.wt02(time,s5) values(1,true)", |
| 629 | "insert into root.ln.wf02.wt02(time,s5) values(2,true)"} |
| 630 | checkError(session.ExecuteBatchStatement(sqls)) |
| 631 | var ( |
| 632 | paths []string = []string{"root.ln.wf02.wt02.s5"} |
| 633 | startTime int64 = 1 |
| 634 | endTime int64 = 200 |
| 635 | ) |
| 636 | sessionDataSet, err := session.ExecuteRawDataQuery(paths, startTime, endTime) |
| 637 | if err == nil { |
| 638 | printDataSet2(sessionDataSet) |
| 639 | sessionDataSet.Close() |
| 640 | } else { |
| 641 | log.Println(err) |
| 642 | } |
| 643 | } |
| 644 | |
| 645 | func checkError(err error) { |
| 646 | if err != nil { |
no test coverage detected
searching dependent graphs…