Apache IoTDB Client for GoLang

Clone this repo:
  1. 9d87218 Code optimization. (#18) by Mark Liu · 2 weeks ago main v0.12.0
  2. 3208ea6 Supporting submodule of IoTDB, and keep consistent with the parent repo (#17) by Xiangdong Huang · 6 weeks ago
  3. 03a810b Fix sort bug in session.InsertRecordsOfOneDevice (#16) by Mark Liu · 6 weeks ago
  4. b27a24b fix sortTablet bug (#14) by yanhong wang · 8 weeks ago
  5. a8cb808 Use local rpc.thrift to generate thrift code when the iotdb's submodule is enabled. (#15) by Mark Liu · 8 weeks ago

English | 中文

Apache IoTDB Client for Go

Overview

This is the GoLang client of Apache IoTDB.

Apache IoTDB (Internet of Things Database) is a data management system for time series data, which can provide users specific services, such as, data collection, storage and analysis. Due to its light weight structure, high performance and usable features together with its seamless integration with the Hadoop and Spark ecology, IoTDB meets the requirements of massive dataset storage, high throughput data input, and complex data analysis in the industrial IoT field.

Apache IoTDB website: https://iotdb.apache.org Apache IoTDB Github: https://github.com/apache/iotdb

How to Compile the Client

Prerequisites

golang >= 1.13

How to Use the Client (Quick Start)

With go mod

export GO111MODULE=on
export GOPROXY=https://goproxy.io

mkdir session_example && cd session_example

curl -o session_example.go -L https://github.com/apache/iotdb-client-go/raw/main/example/session_example.go

go mod init session_example
go run session_example.go

Without go mod

# get thrift 0.13.0
go get github.com/apache/thrift
cd $GOPATH/src/github.com/apache/thrift
git checkout 0.13.0

mkdir -p $GOPATH/src/iotdb-client-go-example/session_example
cd $GOPATH/src/iotdb-client-go-example/session_example

curl -o session_example.go -L https://github.com/apache/iotdb-client-go/raw/main/example/session_example.go
go run session_example.go

Developer environment requirements for iotdb-client-go

OS

  • Linux, Macos or other unix-like OS
  • Windows+bash(WSL, cygwin, Git Bash)

Command Line Tools

  • golang >= 1.13
  • make >= 3.0
  • curl >= 7.1.1
  • thrift 0.13.x