Skip to content

Commit 7ef86f0

Browse files
committed
api: start v2
1 parent 403f2c3 commit 7ef86f0

Some content is hidden

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

83 files changed

+131
-131
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The package `go-tarantool` is located in [tarantool/go-tarantool][go-tarantool]
4545
repository. To download and install, say:
4646

4747
```
48-
$ go get github.com/tarantool/go-tarantool
48+
$ go get github.com/tarantool/go-tarantool/v2
4949
```
5050

5151
This should put the source and binary files in subdirectories of
@@ -112,7 +112,7 @@ package tarantool
112112

113113
import (
114114
"fmt"
115-
"github.com/tarantool/go-tarantool"
115+
"github.com/tarantool/go-tarantool/v2"
116116
)
117117

118118
func main() {
@@ -129,7 +129,7 @@ func main() {
129129
}
130130
```
131131

132-
**Observation 1:** The line "`github.com/tarantool/go-tarantool`" in the
132+
**Observation 1:** The line "`github.com/tarantool/go-tarantool/v2`" in the
133133
`import(...)` section brings in all Tarantool-related functions and structures.
134134

135135
**Observation 2:** The line starting with "`Opts :=`" sets up the options for

auth_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66

77
"github.com/stretchr/testify/assert"
8-
. "github.com/tarantool/go-tarantool"
8+
. "github.com/tarantool/go-tarantool/v2"
99
)
1010

1111
func TestAuth_String(t *testing.T) {

box_error_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"testing"
77

88
"github.com/stretchr/testify/require"
9-
. "github.com/tarantool/go-tarantool"
10-
"github.com/tarantool/go-tarantool/test_helpers"
9+
. "github.com/tarantool/go-tarantool/v2"
10+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1111
)
1212

1313
var samples = map[string]BoxError{

call_16_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package tarantool_test
66
import (
77
"testing"
88

9-
. "github.com/tarantool/go-tarantool"
10-
"github.com/tarantool/go-tarantool/test_helpers"
9+
. "github.com/tarantool/go-tarantool/v2"
10+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1111
)
1212

1313
func TestConnection_Call(t *testing.T) {

call_17_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package tarantool_test
66
import (
77
"testing"
88

9-
. "github.com/tarantool/go-tarantool"
10-
"github.com/tarantool/go-tarantool/test_helpers"
9+
. "github.com/tarantool/go-tarantool/v2"
10+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1111
)
1212

1313
func TestConnection_Call(t *testing.T) {

connection_pool/call_16_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88

99
"github.com/stretchr/testify/require"
10-
"github.com/tarantool/go-tarantool/connection_pool"
11-
"github.com/tarantool/go-tarantool/test_helpers"
10+
"github.com/tarantool/go-tarantool/v2/connection_pool"
11+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1212
)
1313

1414
func TestCall(t *testing.T) {

connection_pool/call_17_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88

99
"github.com/stretchr/testify/require"
10-
"github.com/tarantool/go-tarantool/connection_pool"
11-
"github.com/tarantool/go-tarantool/test_helpers"
10+
"github.com/tarantool/go-tarantool/v2/connection_pool"
11+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1212
)
1313

1414
func TestCall(t *testing.T) {

connection_pool/connection_pool.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"sync"
1818
"time"
1919

20-
"github.com/tarantool/go-tarantool"
20+
"github.com/tarantool/go-tarantool/v2"
2121
)
2222

2323
var (

connection_pool/connection_pool_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313

1414
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/require"
16-
"github.com/tarantool/go-tarantool"
17-
"github.com/tarantool/go-tarantool/connection_pool"
18-
"github.com/tarantool/go-tarantool/test_helpers"
16+
"github.com/tarantool/go-tarantool/v2"
17+
"github.com/tarantool/go-tarantool/v2/connection_pool"
18+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1919
)
2020

2121
var spaceNo = uint32(520)

connection_pool/connector.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"time"
77

8-
"github.com/tarantool/go-tarantool"
8+
"github.com/tarantool/go-tarantool/v2"
99
)
1010

1111
// ConnectorAdapter allows to use Pooler as Connector.

connection_pool/connector_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"time"
88

99
"github.com/stretchr/testify/require"
10-
"github.com/tarantool/go-tarantool"
11-
. "github.com/tarantool/go-tarantool/connection_pool"
10+
"github.com/tarantool/go-tarantool/v2"
11+
. "github.com/tarantool/go-tarantool/v2/connection_pool"
1212
)
1313

1414
var testMode Mode = RW

connection_pool/example_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"time"
66

7-
"github.com/tarantool/go-tarantool"
8-
"github.com/tarantool/go-tarantool/connection_pool"
9-
"github.com/tarantool/go-tarantool/test_helpers"
7+
"github.com/tarantool/go-tarantool/v2"
8+
"github.com/tarantool/go-tarantool/v2/connection_pool"
9+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1010
)
1111

1212
type Tuple struct {

connection_pool/pooler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package connection_pool
33
import (
44
"time"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// Pooler is the interface that must be implemented by a connection pool.

connection_pool/round_robin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package connection_pool
33
import (
44
"sync"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
type RoundRobinStrategy struct {

connection_pool/round_robin_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package connection_pool_test
33
import (
44
"testing"
55

6-
"github.com/tarantool/go-tarantool"
7-
. "github.com/tarantool/go-tarantool/connection_pool"
6+
"github.com/tarantool/go-tarantool/v2"
7+
. "github.com/tarantool/go-tarantool/v2/connection_pool"
88
)
99

1010
const (

connection_pool/watcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package connection_pool
33
import (
44
"sync"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// watcherContainer is a very simple implementation of a thread-safe container

connection_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/stretchr/testify/require"
77

8-
. "github.com/tarantool/go-tarantool"
8+
. "github.com/tarantool/go-tarantool/v2"
99
)
1010

1111
func TestOptsClonePreservesRequiredProtocolFeatures(t *testing.T) {

crud/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ package crud
5656
import (
5757
"context"
5858

59-
"github.com/tarantool/go-tarantool"
59+
"github.com/tarantool/go-tarantool/v2"
6060
)
6161

6262
type baseRequest struct {

crud/count.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// CountResult describes result for `crud.count` method.

crud/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// DeleteOpts describes options for `crud.delete` method.

crud/error_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55

66
"github.com/stretchr/testify/require"
7-
"github.com/tarantool/go-tarantool/crud"
7+
"github.com/tarantool/go-tarantool/v2/crud"
88
)
99

1010
func TestErrorMany(t *testing.T) {

crud/example_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"reflect"
66
"time"
77

8-
"github.com/tarantool/go-tarantool"
9-
"github.com/tarantool/go-tarantool/crud"
8+
"github.com/tarantool/go-tarantool/v2"
9+
"github.com/tarantool/go-tarantool/v2/crud"
1010
)
1111

1212
const (

crud/get.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// GetOpts describes options for `crud.get` method.

crud/insert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// InsertOpts describes options for `crud.insert` method.

crud/insert_many.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// InsertManyOpts describes options for `crud.insert_many` method.

crud/len.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// LenResult describes result for `crud.len` method.

crud/max.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// MaxOpts describes options for `crud.max` method.

crud/min.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// MinOpts describes options for `crud.min` method.

crud/replace.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// ReplaceOpts describes options for `crud.replace` method.

crud/replace_many.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// ReplaceManyOpts describes options for `crud.replace_many` method.

crud/request_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"errors"
77
"testing"
88

9-
"github.com/tarantool/go-tarantool"
10-
"github.com/tarantool/go-tarantool/crud"
11-
"github.com/tarantool/go-tarantool/test_helpers"
9+
"github.com/tarantool/go-tarantool/v2"
10+
"github.com/tarantool/go-tarantool/v2/crud"
11+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1212
)
1313

1414
const invalidSpaceMsg = "invalid space"

crud/select.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// SelectOpts describes options for `crud.select` method.

crud/stats.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// StatsRequest helps you to create request object to call `crud.stats`

crud/storage_info.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// StatusTable describes information for instance.

crud/tarantool_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"time"
99

1010
"github.com/stretchr/testify/require"
11-
"github.com/tarantool/go-tarantool"
12-
"github.com/tarantool/go-tarantool/crud"
13-
"github.com/tarantool/go-tarantool/test_helpers"
11+
"github.com/tarantool/go-tarantool/v2"
12+
"github.com/tarantool/go-tarantool/v2/crud"
13+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1414
)
1515

1616
var server = "127.0.0.1:3013"

crud/truncate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// TruncateResult describes result for `crud.truncate` method.

crud/update.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// UpdateOpts describes options for `crud.update` method.

crud/upsert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crud
33
import (
44
"context"
55

6-
"github.com/tarantool/go-tarantool"
6+
"github.com/tarantool/go-tarantool/v2"
77
)
88

99
// UpsertOpts describes options for `crud.upsert` method.

0 commit comments

Comments
 (0)