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

Function executeRawDataQuery

example/session_pool/session_pool_example.go:585–605  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

583}
584
585func executeRawDataQuery() {
586 session, err := sessionPool.GetSession()
587 defer sessionPool.PutBack(session)
588 if err != nil {
589 log.Print(err)
590 return
591 }
592 session.ExecuteNonQueryStatement("insert into root.ln.wf02.wt02(time,s5) values(1,true)")
593 var (
594 paths []string = []string{"root.ln.wf02.wt02.s5"}
595 startTime int64 = 1
596 endTime int64 = 200
597 )
598 sessionDataSet, err := session.ExecuteRawDataQuery(paths, startTime, endTime)
599 if err == nil {
600 printDataSet2(sessionDataSet)
601 sessionDataSet.Close()
602 } else {
603 log.Println(err)
604 }
605}
606
607func executeBatchStatement() {
608 var sqls = []string{"insert into root.ln.wf02.wt02(time,s5) values(1,true)",

Callers 1

mainFunction · 0.70

Calls 6

PutBackMethod · 0.80
printDataSet2Function · 0.70
ExecuteRawDataQueryMethod · 0.65
CloseMethod · 0.65
GetSessionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…