update thrift to 0.15.0 to fit IoTDB 0.13.0 (#41)

* update thrift to 0.15.0

1. replace "NewTFramedTransport" with "NewTFramedTransportConf", and use default conf for this function.

2.fix function "NewTSocketConf"

3.replace deprecated func "NewTFramedTransport"

in thrift 0.14.1, func NewTSocketConf returns two values;
in thrift 0.15.0, func NewTSocketConf just returns one.

* update readme and makefile to fit thrift 0.15.0

update readme and makefile to fit thrift 0.15.0
8 files changed
tree: 69c765542cbaae04c11d93f8cf2dda4b55d7a1c2
  1. .github/
  2. client/
  3. example/
  4. rpc/
  5. test/
  6. .asf.yaml
  7. .gitignore
  8. go.mod
  9. go.sum
  11. LICENSE-binary
  12. Makefile
  13. NOTICE
  14. NOTICE-binary
  15. README.md
  16. README_ZH.md

English | 中文

Apache IoTDB

Apache IoTDB (Database for Internet of Things) is an IoT native database with high performance for data management and analysis, deployable on the edge and the cloud. Due to its light-weight architecture, high performance and rich feature set together with its deep integration with Apache Hadoop, Spark and Flink, Apache IoTDB can meet the requirements of massive data storage, high-speed data ingestion and complex data analysis in the IoT industrial fields.

Apache IoTDB Client for Go

E2E Tests GitHub release License IoTDB Website


This is the GoLang client of Apache IoTDB.

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


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.15.0
go get github.com/apache/thrift
cd $GOPATH/src/github.com/apache/thrift
git checkout 0.15.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


  • 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.15.0