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

Function insertRecords

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

Source from the content-addressed store, hash-verified

284}
285
286func insertRecords() {
287 var (
288 deviceId = []string{"root.sg1.dev1"}
289 measurements = [][]string{{"status"}}
290 dataTypes = [][]client.TSDataType{{client.TEXT}}
291 values = [][]interface{}{{"123"}}
292 timestamp = []int64{12}
293 )
294 session, err := sessionPool.GetSession()
295 defer sessionPool.PutBack(session)
296 if err == nil {
297 checkError(session.InsertRecords(deviceId, measurements, dataTypes, values, timestamp))
298 }
299
300}
301
302func insertAlignedRecords() {
303 var (

Callers 1

mainFunction · 0.70

Calls 4

PutBackMethod · 0.80
checkErrorFunction · 0.70
InsertRecordsMethod · 0.65
GetSessionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…