Skip to content

Commit

Permalink
style: update version to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
huskar-t committed Jul 6, 2022
1 parent e803403 commit f475e1c
Show file tree
Hide file tree
Showing 58 changed files with 133 additions and 130 deletions.
12 changes: 6 additions & 6 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ go mod init taos-demo
```go
import (
"database/sql"
_ "github.com/taosdata/driver-go/v2/taosSql"
_ "github.com/taosdata/driver-go/v3/taosSql"
)
```

Expand All @@ -36,7 +36,7 @@ go mod tidy
或通过`go get`直接下载安装:

```sh
go get github.com/taosdata/driver-go/v2/taosSql
go get github.com/taosdata/driver-go/v3/taosSql
```

## 用法
Expand All @@ -53,7 +53,7 @@ import (
"fmt"
"time"

_ "github.com/taosdata/driver-go/v2/taosSql"
_ "github.com/taosdata/driver-go/v3/taosSql"
)

func main() {
Expand Down Expand Up @@ -154,7 +154,7 @@ import (
"fmt"
"time"

_ "github.com/taosdata/driver-go/v2/taosRestful"
_ "github.com/taosdata/driver-go/v3/taosRestful"
)

func main() {
Expand Down Expand Up @@ -201,7 +201,7 @@ func main() {
```go
import (
"database/sql"
_ "github.com/taosdata/driver-go/v2/taosRestful"
_ "github.com/taosdata/driver-go/v3/taosRestful"
)
```

Expand Down Expand Up @@ -234,7 +234,7 @@ import (
"fmt"
"time"

_ "github.com/taosdata/driver-go/v2/taosRestful"
_ "github.com/taosdata/driver-go/v3/taosRestful"
)

func main() {
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import taosSql:
```go
import (
"database/sql"
_ "github.com/taosdata/driver-go/v2/taosSql"
_ "github.com/taosdata/driver-go/v3/taosSql"
)
```

Expand All @@ -36,7 +36,7 @@ go mod tidy
Or `go get` to directly install it:

```sh
go get github.com/taosdata/driver-go/v2/taosSql
go get github.com/taosdata/driver-go/v3/taosSql
```

## Usage
Expand All @@ -53,7 +53,7 @@ import (
"fmt"
"time"

_ "github.com/taosdata/driver-go/v2/taosSql"
_ "github.com/taosdata/driver-go/v3/taosSql"
)

func main() {
Expand Down Expand Up @@ -152,7 +152,7 @@ import (
"fmt"
"time"

_ "github.com/taosdata/driver-go/v2/taosRestful"
_ "github.com/taosdata/driver-go/v3/taosRestful"
)

func main() {
Expand Down Expand Up @@ -199,7 +199,7 @@ import
```go
import (
"database/sql"
_ "github.com/taosdata/driver-go/v2/taosRestful"
_ "github.com/taosdata/driver-go/v3/taosRestful"
)
```

Expand All @@ -208,7 +208,7 @@ Introduce
```go
import (
"database/sql"
_ "github.com/taosdata/driver-go/v2/taosRestful"
_ "github.com/taosdata/driver-go/v3/taosRestful"
)
```

Expand Down Expand Up @@ -245,7 +245,7 @@ import (
"fmt"
"time"

_ "github.com/taosdata/driver-go/v2/taosRestful"
_ "github.com/taosdata/driver-go/v3/taosRestful"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion af/async/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package async
import (
"sync"

"github.com/taosdata/driver-go/v2/wrapper/handler"
"github.com/taosdata/driver-go/v3/wrapper/handler"
)

const defaultPoolSize = 10000
Expand Down
18 changes: 9 additions & 9 deletions af/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import (
"database/sql/driver"
"unsafe"

"github.com/taosdata/driver-go/v2/af/async"
"github.com/taosdata/driver-go/v2/af/insertstmt"
"github.com/taosdata/driver-go/v2/af/locker"
"github.com/taosdata/driver-go/v2/common"
"github.com/taosdata/driver-go/v2/common/param"
"github.com/taosdata/driver-go/v2/errors"
taosError "github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v2/wrapper/handler"
"github.com/taosdata/driver-go/v3/af/async"
"github.com/taosdata/driver-go/v3/af/insertstmt"
"github.com/taosdata/driver-go/v3/af/locker"
"github.com/taosdata/driver-go/v3/common"
"github.com/taosdata/driver-go/v3/common/param"
"github.com/taosdata/driver-go/v3/errors"
taosError "github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
"github.com/taosdata/driver-go/v3/wrapper/handler"
)

type Connector struct {
Expand Down
4 changes: 2 additions & 2 deletions af/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"testing"
"time"

"github.com/taosdata/driver-go/v2/common"
param2 "github.com/taosdata/driver-go/v2/common/param"
"github.com/taosdata/driver-go/v3/common"
param2 "github.com/taosdata/driver-go/v3/common/param"
)

func TestMain(m *testing.M) {
Expand Down
8 changes: 4 additions & 4 deletions af/insertstmt/stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"errors"
"unsafe"

"github.com/taosdata/driver-go/v2/af/locker"
param2 "github.com/taosdata/driver-go/v2/common/param"
taosError "github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v3/af/locker"
param2 "github.com/taosdata/driver-go/v3/common/param"
taosError "github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
)

type InsertStmt struct {
Expand Down
2 changes: 1 addition & 1 deletion af/locker/locker.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"runtime"
"sync"

"github.com/taosdata/driver-go/v2/wrapper/thread"
"github.com/taosdata/driver-go/v3/wrapper/thread"
)

var locker *thread.Locker
Expand Down
10 changes: 5 additions & 5 deletions af/rows.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"reflect"
"unsafe"

"github.com/taosdata/driver-go/v2/af/async"
"github.com/taosdata/driver-go/v2/af/locker"
"github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v2/wrapper/handler"
"github.com/taosdata/driver-go/v3/af/async"
"github.com/taosdata/driver-go/v3/af/locker"
"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
"github.com/taosdata/driver-go/v3/wrapper/handler"
)

type rows struct {
Expand Down
10 changes: 5 additions & 5 deletions af/stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"fmt"
"unsafe"

"github.com/taosdata/driver-go/v2/af/async"
"github.com/taosdata/driver-go/v2/af/locker"
"github.com/taosdata/driver-go/v2/common/param"
taosError "github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v3/af/async"
"github.com/taosdata/driver-go/v3/af/locker"
"github.com/taosdata/driver-go/v3/common/param"
taosError "github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
)

type Stmt struct {
Expand Down
4 changes: 2 additions & 2 deletions af/tmq/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"strconv"
"unsafe"

"github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
)

type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion af/tmq/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tmq
import (
"testing"

"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v3/wrapper"
)

func TestConfig(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions af/tmq/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"time"
"unsafe"

"github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v2/wrapper/cgo"
"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
"github.com/taosdata/driver-go/v3/wrapper/cgo"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions af/tmq/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"time"

"github.com/stretchr/testify/assert"
"github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
)

func TestTmq(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions bench/driver/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"time"

_ "github.com/taosdata/driver-go/v2/taosRestful"
_ "github.com/taosdata/driver-go/v2/taosSql"
_ "github.com/taosdata/driver-go/v3/taosRestful"
_ "github.com/taosdata/driver-go/v3/taosSql"
)

var cdb *sql.DB
Expand Down
2 changes: 1 addition & 1 deletion bench/query/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"fmt"

_ "github.com/taosdata/driver-go/v2/taosSql"
_ "github.com/taosdata/driver-go/v3/taosSql"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion bench/sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

_ "github.com/taosdata/driver-go/v2/taosSql"
_ "github.com/taosdata/driver-go/v3/taosSql"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions bench/stmt/insert/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (

_ "net/http/pprof"

"github.com/taosdata/driver-go/v2/common"
"github.com/taosdata/driver-go/v2/common/param"
"github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v3/common"
"github.com/taosdata/driver-go/v3/common/param"
"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions bench/stmt/query/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

_ "net/http/pprof"

"github.com/taosdata/driver-go/v2/common/param"
"github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v3/common/param"
"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions bench/test/tmq/multiinsert.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

_ "net/http/pprof"

"github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v2/wrapper/cgo"
"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
"github.com/taosdata/driver-go/v3/wrapper/cgo"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions bench/tmq/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"log"
"time"

"github.com/taosdata/driver-go/v2/errors"
"github.com/taosdata/driver-go/v2/wrapper"
"github.com/taosdata/driver-go/v2/wrapper/cgo"
"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
"github.com/taosdata/driver-go/v3/wrapper/cgo"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion bench/valgrind/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package main
import (
"database/sql"
"fmt"
_ "github.com/taosdata/driver-go/v2/taosSql"
"log"
"time"

_ "github.com/taosdata/driver-go/v3/taosSql"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion common/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package common
import (
"reflect"

"github.com/taosdata/driver-go/v2/types"
"github.com/taosdata/driver-go/v3/types"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion common/param/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package param
import (
"fmt"

"github.com/taosdata/driver-go/v2/types"
"github.com/taosdata/driver-go/v3/types"
)

type ColumnType struct {
Expand Down
2 changes: 1 addition & 1 deletion common/param/param.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"database/sql/driver"
"time"

taosTypes "github.com/taosdata/driver-go/v2/types"
taosTypes "github.com/taosdata/driver-go/v3/types"
)

type Param struct {
Expand Down
Loading

0 comments on commit f475e1c

Please sign in to comment.