This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-client-go.git
The following commit(s) were added to refs/heads/main by this push:
new 29ef3c0 fix: typo Github which should be GitHub (#124)
29ef3c0 is described below
commit 29ef3c0d5bd2990bd7e0fbcc0a485d103874955b
Author: Rick <[email protected]>
AuthorDate: Sat Mar 29 21:27:09 2025 +0800
fix: typo Github which should be GitHub (#124)
Co-authored-by: rick <[email protected]>
---
README.md | 24 +++++++++++++-----------
README_ZH.md | 2 +-
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index 271bc1d..aa73706 100644
--- a/README.md
+++ b/README.md
@@ -22,10 +22,10 @@
# 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,
+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
@@ -41,8 +41,8 @@ high-speed data ingestion and complex data analysis in the
IoT industrial fields
This is the GoLang client of Apache IoTDB.
-Apache IoTDB website: https://iotdb.apache.org
-Apache IoTDB Github: https://github.com/apache/iotdb
+Apache IoTDB website: <https://iotdb.apache.org>
+Apache IoTDB GitHub: <https://github.com/apache/iotdb>
## Prerequisites
@@ -80,11 +80,13 @@ go run session_example.go
```
## How to Use the SessionPool
+
SessionPool is a wrapper of a Session Set. Using SessionPool, the user do not
need to consider how to reuse a session connection.
If there is no available connections and the pool reaches its max size, the
all methods will hang until there is a available connection.
The PutBack method must be called after use
### New sessionPool
+
standalone
```golang
@@ -98,15 +100,16 @@ config := &client.PoolConfig{
sessionPool = client.NewSessionPool(config, 3, 60000, 60000, false)
```
+
cluster or doubleLive
```golang
config := &client.PoolConfig{
- UserName: user,
- Password: password,
- NodeUrls: strings.Split("127.0.0.1:6667,127.0.0.1:6668", ","),
- }
+ UserName: user,
+ Password: password,
+ NodeUrls: strings.Split("127.0.0.1:6667,127.0.0.1:6668", ","),
+ }
sessionPool = client.NewSessionPool(config, 3, 60000, 60000, false)
```
@@ -146,7 +149,6 @@ if err == nil {
```
-
## Developer environment requirements for iotdb-client-go
### OS
diff --git a/README_ZH.md b/README_ZH.md
index a2d0f44..89e368a 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -40,7 +40,7 @@ Apache IoTDB可以满足物联网工业领域的海量数据存储、高速数
本仓库是Apache IoTDB的Go语言客户端.
Apache IoTDB website: https://iotdb.apache.org
-Apache IoTDB Github: https://github.com/apache/iotdb
+Apache IoTDB GitHub: https://github.com/apache/iotdb
## 环境准备