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

Function insertAlignedRecord

example/session_example.go:351–368  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

349}
350
351func insertAlignedRecord() {
352 var (
353 deviceId = "root.al1.dev1"
354 measurements = []string{"status"}
355 values = []interface{}{"123"}
356 dataTypes = []client.TSDataType{client.TEXT}
357 timestamp int64 = 12
358 )
359 checkError(session.InsertAlignedRecord(deviceId, measurements, dataTypes, values, timestamp))
360 sessionDataSet, err := session.ExecuteStatement("show devices")
361 if err == nil {
362 printDataSet0(sessionDataSet)
363 sessionDataSet.Close()
364 } else {
365 log.Println(err)
366 }
367 fmt.Println()
368}
369
370func insertRecords() {
371 var (

Callers 1

mainFunction · 0.70

Calls 5

InsertAlignedRecordMethod · 0.80
checkErrorFunction · 0.70
printDataSet0Function · 0.70
ExecuteStatementMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…