MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / executeBatchStatement

Function executeBatchStatement

example/session_example.go:627–643  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

625}
626
627func 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
645func checkError(err error) {
646 if err != nil {

Callers 1

mainFunction · 0.70

Calls 5

checkErrorFunction · 0.70
printDataSet2Function · 0.70
ExecuteBatchStatementMethod · 0.65
ExecuteRawDataQueryMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…