Skip to content

Commit 0da8ed8

Browse files
authored
Programming-Go-Native-API_apache.md (#1043)
1 parent b5d90cf commit 0da8ed8

92 files changed

Lines changed: 167 additions & 51 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/UserGuide/Master/Table/API/Programming-CSharp-Native-API_apache.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ If using .NET 5.0 or a later version of the SDK, enter the following command to
4141
```Plain
4242
dotnet add package Apache.IoTDB
4343
```
44+
Note: Do not use a newer client to connect to an older server, as this may cause connection failures or unexpected errors.
4445

4546
## 3. Read/Write Operations
4647

src/UserGuide/Master/Table/API/Programming-CSharp-Native-API_timecho.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ If using .NET 5.0 or a later version of the SDK, enter the following command to
4141
```Plain
4242
dotnet add package Apache.IoTDB
4343
```
44+
Note: Do not use a newer client to connect to an older server, as this may cause connection failures or unexpected errors.
4445

4546
## 3. Read/Write Operations
4647

src/UserGuide/Master/Table/API/Programming-Cpp-Native-API_apache.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ Clone the source code from git:
9696
git clone https://github.com/apache/iotdb.git
9797
```
9898

99-
The default main branch is the master branch. If you want to use a specific release version, switch to that branch (e.g., version 1.3.2):
99+
The default main branch is the master branch. If you want to use a specific release version, switch to that branch (e.g., version 2.0.6):
100100
```shell
101-
git checkout rc/1.3.2
101+
git checkout rc/2.0.6
102102
```
103+
Note: Do not use a newer client to connect to an older server, as this may cause connection failures or unexpected errors.
103104

104105
Run Maven to compile in the IoTDB root directory:
105106

src/UserGuide/Master/Table/API/Programming-Cpp-Native-API_timecho.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ Clone the source code from git:
9696
git clone https://github.com/apache/iotdb.git
9797
```
9898

99-
The default main branch is the master branch. If you want to use a specific release version, switch to that branch (e.g., version 1.3.2):
99+
The default main branch is the master branch. If you want to use a specific release version, switch to that branch (e.g., version 2.0.6):
100100
```shell
101-
git checkout rc/1.3.2
101+
git checkout rc/2.0.6
102102
```
103+
Note: Do not use a newer client to connect to an older server, as this may cause connection failures or unexpected errors.
103104

104105
Run Maven to compile in the IoTDB root directory:
105106

src/UserGuide/Master/Table/API/Programming-Go-Native-API_apache.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ cd $GOPATH/src/iotdb-client-go-example/session_example
6262
curl -o session_example.go -L https://github.com/apache/iotdb-client-go/raw/main/example/session_example.go
6363
go run session_example.go
6464
```
65+
* Note: Do not use a newer client to connect to an older server, as this may cause connection failures or unexpected errors.
6566

6667
## 2. ITableSession Interface
6768
### 2.1 Description

src/UserGuide/Master/Table/API/Programming-Go-Native-API_timecho.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ cd $GOPATH/src/iotdb-client-go-example/session_example
6262
curl -o session_example.go -L https://github.com/apache/iotdb-client-go/raw/main/example/session_example.go
6363
go run session_example.go
6464
```
65+
* Note: Do not use a newer client to connect to an older server, as this may cause connection failures or unexpected errors.
6566

6667
## 2. ITableSession Interface
6768
### 2.1 Description

src/UserGuide/Master/Table/API/Programming-JDBC_apache.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Add the following dependency to your Maven `pom.xml` file:
4444
</dependency>
4545
</dependencies>
4646
```
47+
Note: Do not use a newer client to connect to an older server, as this may cause connection failures or unexpected errors.
4748

4849
## 2. Read and Write Operations
4950

@@ -66,13 +67,13 @@ Add the following dependency to your Maven `pom.xml` file:
6667

6768
## 3. Sample Code
6869

69-
**Note:** When using the Table Model, you must specify the `sql_dialect` parameter as `table` in the URL. Example:
70+
**Note:** When using the Table Mode, you must specify the `sql_dialect` parameter as `table` in the URL. Example:
7071

7172
```Java
7273
String url = "jdbc:iotdb://127.0.0.1:6667?sql_dialect=table";
7374
```
7475

75-
You can find the full example code at [GitHub Repository](https://github.com/apache/iotdb/blob/master/example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java).
76+
You can find the full example code at [GitHub Repository](https://github.com/apache/iotdb/blob/rc/2.0.1/example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java).
7677

7778
Here is an excerpt of the sample code:
7879

@@ -133,7 +134,7 @@ public class TableModelJDBCExample {
133134
"create table test1.table1(region_id STRING TAG, plant_id STRING TAG, device_id STRING TAG, model STRING ATTRIBUTE, temperature FLOAT FIELD, humidity DOUBLE FIELD) with (TTL=3600000)");
134135

135136
statement.execute(
136-
"create table table2(region_id STRING TAG, plant_id STRING TAG, color STRING ATTRIBUTE, temperature FLOAT FIELD, speed DOUBLE FIELD) with (TTL=6600000)");
137+
"create table table2(region_id STRING ID, plant_id STRING ID, color STRING ATTRIBUTE, temperature FLOAT MEASUREMENT, speed DOUBLE MEASUREMENT) with (TTL=6600000)");
137138

138139
// show tables from current database
139140
try (ResultSet resultSet = statement.executeQuery("SHOW TABLES")) {

src/UserGuide/Master/Table/API/Programming-JDBC_timecho.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Add the following dependency to your Maven `pom.xml` file:
4444
</dependency>
4545
</dependencies>
4646
```
47+
Note: Do not use a newer client to connect to an older server, as this may cause connection failures or unexpected errors.
4748

4849
## 2. Read and Write Operations
4950

@@ -66,7 +67,7 @@ Add the following dependency to your Maven `pom.xml` file:
6667

6768
## 3. Sample Code
6869

69-
**Note:** When using the Table Model, you must specify the `sql_dialect` parameter as `table` in the URL. Example:
70+
**Note:** When using the Table Mode, you must specify the `sql_dialect` parameter as `table` in the URL. Example:
7071

7172
```Java
7273
String url = "jdbc:iotdb://127.0.0.1:6667?sql_dialect=table";

src/UserGuide/Master/Table/API/Programming-Java-Native-API_apache.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ IoTDB provides a Java native client driver and a session pool management mechani
4444
</dependencies>
4545
```
4646
* The latest version of `iotdb-session` can be viewed [here](https://repo1.maven.org/maven2/org/apache/iotdb/iotdb-session/)
47+
* Note: Do not use a newer client to connect to an older server, as this may cause connection failures or unexpected errors.
4748

4849
## 3. Read and Write Operations
4950

src/UserGuide/Master/Table/API/Programming-Java-Native-API_timecho.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ IoTDB provides a Java native client driver and a session pool management mechani
4444
</dependencies>
4545
```
4646
* The latest version of `iotdb-session` can be viewed [here](https://repo1.maven.org/maven2/com/timecho/iotdb/iotdb-session/)
47+
* Note: Do not use a newer client to connect to an older server, as this may cause connection failures or unexpected errors.
4748

4849
## 3. Read and Write Operations
4950

0 commit comments

Comments
 (0)