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

Function insertRecord

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

Source from the content-addressed store, hash-verified

244}
245
246func insertRecord() {
247 var (
248 deviceId = "root.sg1.dev1"
249 measurements = []string{"status"}
250 values = []interface{}{"123"}
251 dataTypes = []client.TSDataType{client.TEXT}
252 timestamp int64 = 12
253 )
254 session, err := sessionPool.GetSession()
255 defer sessionPool.PutBack(session)
256 if err == nil {
257 checkError(session.InsertRecord(deviceId, measurements, dataTypes, values, timestamp))
258 }
259
260}
261
262func insertAlignedRecord() {
263 var (

Callers 1

mainFunction · 0.70

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…