Skip to content

Commit

Permalink
feat: 更换模块名
Browse files Browse the repository at this point in the history
  • Loading branch information
godLei6 committed Sep 3, 2024
1 parent 54d9c02 commit 0141a45
Show file tree
Hide file tree
Showing 109 changed files with 278 additions and 266 deletions.
20 changes: 10 additions & 10 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ go mod init taos-demo
```go
import (
"database/sql"
_ "github.com/taosdata/driver-go/v3/taosSql"
_ "github.com/i-Things/driver-go/v3/taosSql"
)
```

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

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

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

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

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

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

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

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

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

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

_ "github.com/taosdata/driver-go/v3/taosWS"
_ "github.com/i-Things/driver-go/v3/taosWS"
)

func main() {
Expand Down Expand Up @@ -469,7 +469,7 @@ func main() {
```go
import (
"database/sql"
_ "github.com/taosdata/driver-go/v3/taosWS"
_ "github.com/i-Things/driver-go/v3/taosWS"
)
```

Expand Down Expand Up @@ -672,6 +672,6 @@ driver-go

## 导航

driver-go: [https://github.com/taosdata/driver-go](https://github.com/taosdata/driver-go)
driver-go: [https://github.com/i-Things/driver-go](https://github.com/i-Things/driver-go)

TDengine: [https://github.com/taosdata/TDengine](https://github.com/taosdata/TDengine)
TDengine: [https://github.com/i-Things/TDengine](https://github.com/i-Things/TDengine)
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import taosSql:
```go
import (
"database/sql"
_ "github.com/taosdata/driver-go/v3/taosSql"
_ "github.com/i-Things/driver-go/v3/taosSql"
)
```

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

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

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

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

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

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

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

Expand Down Expand Up @@ -371,7 +371,7 @@ import (
"fmt"
"time"
_ "github.com/taosdata/driver-go/v3/taosRestful"
_ "github.com/i-Things/driver-go/v3/taosRestful"
)
func main() {
Expand Down Expand Up @@ -423,7 +423,7 @@ import (
"fmt"
"time"
_ "github.com/taosdata/driver-go/v3/taosWS"
_ "github.com/i-Things/driver-go/v3/taosWS"
)
func main() {
Expand Down Expand Up @@ -470,7 +470,7 @@ import
```go
import (
"database/sql"
_ "github.com/taosdata/driver-go/v3/taosWS"
_ "github.com/i-Things/driver-go/v3/taosWS"
)
```

Expand Down Expand Up @@ -675,6 +675,6 @@ driver-go

## Link

driver-go: [https://github.com/taosdata/driver-go](https://github.com/taosdata/driver-go)
driver-go: [https://github.com/i-Things/driver-go](https://github.com/i-Things/driver-go)

TDengine: [https://github.com/taosdata/TDengine](https://github.com/taosdata/TDengine)
TDengine: [https://github.com/i-Things/TDengine](https://github.com/i-Things/TDengine)
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/v3/wrapper/handler"
"github.com/i-Things/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/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"
"github.com/i-Things/driver-go/v3/af/async"
"github.com/i-Things/driver-go/v3/af/insertstmt"
"github.com/i-Things/driver-go/v3/af/locker"
"github.com/i-Things/driver-go/v3/common"
"github.com/i-Things/driver-go/v3/common/param"
"github.com/i-Things/driver-go/v3/errors"
taosError "github.com/i-Things/driver-go/v3/errors"
"github.com/i-Things/driver-go/v3/wrapper"
"github.com/i-Things/driver-go/v3/wrapper/handler"
)

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

"github.com/i-Things/driver-go/v3/common"
param2 "github.com/i-Things/driver-go/v3/common/param"
"github.com/i-Things/driver-go/v3/wrapper"
"github.com/stretchr/testify/assert"
"github.com/taosdata/driver-go/v3/common"
param2 "github.com/taosdata/driver-go/v3/common/param"
"github.com/taosdata/driver-go/v3/wrapper"
)

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/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"
"github.com/i-Things/driver-go/v3/af/locker"
"github.com/i-Things/driver-go/v3/common/param"
taosError "github.com/i-Things/driver-go/v3/errors"
"github.com/i-Things/driver-go/v3/wrapper"
)

type InsertStmt struct {
Expand Down
8 changes: 4 additions & 4 deletions af/insertstmt/stmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"time"
"unsafe"

"github.com/i-Things/driver-go/v3/common"
"github.com/i-Things/driver-go/v3/common/param"
taosError "github.com/i-Things/driver-go/v3/errors"
"github.com/i-Things/driver-go/v3/wrapper"
"github.com/stretchr/testify/assert"
"github.com/taosdata/driver-go/v3/common"
"github.com/taosdata/driver-go/v3/common/param"
taosError "github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
)

func prepareEnv(conn unsafe.Pointer) error {
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/v3/wrapper/thread"
"github.com/i-Things/driver-go/v3/wrapper/thread"
)

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

"github.com/taosdata/driver-go/v3/af/async"
"github.com/taosdata/driver-go/v3/af/locker"
"github.com/taosdata/driver-go/v3/common/parser"
"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
"github.com/taosdata/driver-go/v3/wrapper/handler"
"github.com/i-Things/driver-go/v3/af/async"
"github.com/i-Things/driver-go/v3/af/locker"
"github.com/i-Things/driver-go/v3/common/parser"
"github.com/i-Things/driver-go/v3/errors"
"github.com/i-Things/driver-go/v3/wrapper"
"github.com/i-Things/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 @@ -6,11 +6,11 @@ import (
"fmt"
"unsafe"

"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"
"github.com/i-Things/driver-go/v3/af/async"
"github.com/i-Things/driver-go/v3/af/locker"
"github.com/i-Things/driver-go/v3/common/param"
taosError "github.com/i-Things/driver-go/v3/errors"
"github.com/i-Things/driver-go/v3/wrapper"
)

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

"github.com/i-Things/driver-go/v3/common"
"github.com/i-Things/driver-go/v3/common/param"
"github.com/stretchr/testify/assert"
"github.com/taosdata/driver-go/v3/common"
"github.com/taosdata/driver-go/v3/common/param"
)

func TestNewStmt(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions af/tmq/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package tmq
import (
"unsafe"

"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
"github.com/i-Things/driver-go/v3/errors"
"github.com/i-Things/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/v3/wrapper"
"github.com/i-Things/driver-go/v3/wrapper"
)

// @author: xftan
Expand Down
10 changes: 5 additions & 5 deletions af/tmq/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"errors"
"unsafe"

"github.com/i-Things/driver-go/v3/common"
"github.com/i-Things/driver-go/v3/common/parser"
"github.com/i-Things/driver-go/v3/common/tmq"
taosError "github.com/i-Things/driver-go/v3/errors"
"github.com/i-Things/driver-go/v3/wrapper"
jsoniter "github.com/json-iterator/go"
"github.com/taosdata/driver-go/v3/common"
"github.com/taosdata/driver-go/v3/common/parser"
"github.com/taosdata/driver-go/v3/common/tmq"
taosError "github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
)

type Consumer struct {
Expand Down
6 changes: 3 additions & 3 deletions af/tmq/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"time"
"unsafe"

"github.com/i-Things/driver-go/v3/common/tmq"
"github.com/i-Things/driver-go/v3/errors"
"github.com/i-Things/driver-go/v3/wrapper"
"github.com/stretchr/testify/assert"
"github.com/taosdata/driver-go/v3/common/tmq"
"github.com/taosdata/driver-go/v3/errors"
"github.com/taosdata/driver-go/v3/wrapper"
)

// @author: xftan
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/v3/taosRestful"
_ "github.com/taosdata/driver-go/v3/taosSql"
_ "github.com/i-Things/driver-go/v3/taosRestful"
_ "github.com/i-Things/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/v3/taosSql"
_ "github.com/i-Things/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/v3/taosSql"
_ "github.com/i-Things/driver-go/v3/taosSql"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions bench/standard/executor/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strconv"
"time"

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

type TDTest struct {
Expand Down
2 changes: 1 addition & 1 deletion bench/standard/native/exec/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/taosdata/driver-go/v3/bench/standard/executor"
"github.com/i-Things/driver-go/v3/bench/standard/executor"
)

func main() {
Expand Down
Loading

0 comments on commit 0141a45

Please sign in to comment.