Skip to content

Commit 84f8e6e

Browse files
authored
Fix Go module name: add /v2 suffix (#132)
1 parent 1fccbe6 commit 84f8e6e

19 files changed

+1755
-749
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ generate:
6363
curl -L -o thrift/iotdb-tools-thrift.zip https://repo1.maven.org/maven2/org/apache/iotdb/tools/iotdb-tools-thrift/0.14.1.0/iotdb-tools-thrift-0.14.1.0-$(OS_CLASSIFIER).zip; \
6464
unzip -o thrift/iotdb-tools-thrift.zip -d thrift; \
6565
curl -o common.thrift https://raw.githubusercontent.com/apache/iotdb/master/iotdb-protocol/thrift-commons/src/main/thrift/common.thrift; \
66-
$(THRIFT_EXEC) -out . -gen go:package_prefix=github.com/apache/iotdb-client-go/ common.thrift; \
66+
$(THRIFT_EXEC) -out . -gen go:package_prefix=github.com/apache/iotdb-client-go/v2/ common.thrift; \
6767
curl -o client.thrift https://raw.githubusercontent.com/apache/iotdb/master/iotdb-protocol/thrift-datanode/src/main/thrift/client.thrift; \
68-
$(THRIFT_EXEC) -out . -gen go:package_prefix=github.com/apache/iotdb-client-go/ client.thrift; \
68+
$(THRIFT_EXEC) -out . -gen go:package_prefix=github.com/apache/iotdb-client-go/v2/ client.thrift; \
6969
rm -f common.thrift; \
7070
rm -f client.thrift; \
7171
fi

client/errors.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ package client
2121

2222
import (
2323
"bytes"
24-
"github.com/apache/iotdb-client-go/common"
24+
25+
"github.com/apache/iotdb-client-go/v2/common"
2526
)
2627

2728
type BatchError struct {

client/rpcdataset.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package client
33
import (
44
"context"
55
"fmt"
6-
"github.com/apache/iotdb-client-go/common"
7-
"github.com/apache/iotdb-client-go/rpc"
86
"strconv"
97
"time"
8+
9+
"github.com/apache/iotdb-client-go/v2/common"
10+
"github.com/apache/iotdb-client-go/v2/rpc"
1011
)
1112

1213
const startIndex = int32(2)

client/session.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import (
3232
"strings"
3333
"time"
3434

35-
"github.com/apache/iotdb-client-go/common"
36-
37-
"github.com/apache/iotdb-client-go/rpc"
3835
"github.com/apache/thrift/lib/go/thrift"
36+
37+
"github.com/apache/iotdb-client-go/v2/common"
38+
"github.com/apache/iotdb-client-go/v2/rpc"
3939
)
4040

4141
const (

client/sessiondataset.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package client
22

33
import (
4-
"github.com/apache/iotdb-client-go/rpc"
54
"time"
5+
6+
"github.com/apache/iotdb-client-go/v2/rpc"
67
)
78

89
type SessionDataSet struct {

client/tablesession.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
package client
2121

22-
import "github.com/apache/iotdb-client-go/common"
22+
import "github.com/apache/iotdb-client-go/v2/common"
2323

2424
// ITableSession defines an interface for interacting with IoTDB tables.
2525
// It supports operations such as data insertion, executing queries, and closing the session.

client/tablesessionpool.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
package client
2121

2222
import (
23-
"github.com/apache/iotdb-client-go/common"
2423
"log"
2524
"sync/atomic"
25+
26+
"github.com/apache/iotdb-client-go/v2/common"
2627
)
2728

2829
// TableSessionPool manages a pool of ITableSession instances, enabling efficient

client/utils.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ import (
2424
"encoding/binary"
2525
"errors"
2626
"fmt"
27-
"github.com/apache/iotdb-client-go/common"
28-
"github.com/apache/iotdb-client-go/rpc"
2927
"strconv"
3028
"time"
29+
30+
"github.com/apache/iotdb-client-go/v2/common"
31+
"github.com/apache/iotdb-client-go/v2/rpc"
3132
)
3233

3334
const (

client/utils_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
package client
2121

2222
import (
23-
"github.com/apache/iotdb-client-go/common"
2423
"testing"
24+
25+
"github.com/apache/iotdb-client-go/v2/common"
2526
)
2627

2728
func Test_bytesToInt32(t *testing.T) {

0 commit comments

Comments
 (0)