Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/reusable_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Setup golang for connector and tests
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.24'

- name: Setup tt
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
golang: ['1.20', 'stable']
golang: ['1.24', 'stable']
tarantool: ['1.10']
coveralls: [false]
fuzzing: [false]
Expand All @@ -36,17 +36,17 @@ jobs:
strategy:
fail-fast: false
matrix:
golang: ['1.20', 'stable']
golang: ['1.24', 'stable']
tarantool: ['2.11', '3.4', 'master']
coveralls: [false]
fuzzing: [false]
include:
- tarantool: 'master'
coveralls: true
golang: '1.20'
golang: '1.24'
- tarantool: 'master'
fuzzing: true
golang: '1.20'
golang: '1.24'
coveralls: false
uses: ./.github/workflows/reusable-run.yml
with:
Expand All @@ -71,7 +71,7 @@ jobs:
fail-fast: false
matrix:
golang:
- '1.20'
- '1.24'
- 'stable'
runs-on:
- macos-13
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.

### Changed

* Required Go version is `1.24` now.

### Fixed

## [v2.4.0] - 2025-07-11
Expand Down
28 changes: 19 additions & 9 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
# Migration guide

## Migration from v2.x.x to v3.x.x

* [Major changes](#major-changes-v3)

TODO

### <a id="major-changes-v3">Major changes</a>

* Required Go version is `1.24` now.

## Migration from v1.x.x to v2.x.x

* [Major changes](#major-changes)
* [Major changes](#major-changes-v2)
* [Main package](#main-package)
* [Go version](#go-version)
* [msgpack/v5](#msgpackv5)
Expand All @@ -25,7 +35,7 @@
* [crud package](#crud-package)
* [test_helpers package](#test_helpers-package)

### Major changes
### <a id="major-changes-v2">Major changes</a>

* The `go_tarantool_call_17` build tag is no longer needed, since by default
the `CallRequest` is `Call17Request`.
Expand All @@ -50,9 +60,9 @@ import (
"fmt"

"github.com/tarantool/go-tarantool"
_ "github.com/tarantool/go-tarantool/v2/datetime"
_ "github.com/tarantool/go-tarantool/v2/decimal"
_ "github.com/tarantool/go-tarantool/v2/uuid"
_ "github.com/tarantool/go-tarantool/v3/datetime"
_ "github.com/tarantool/go-tarantool/v3/decimal"
_ "github.com/tarantool/go-tarantool/v3/uuid"
)

func main() {
Expand Down Expand Up @@ -82,10 +92,10 @@ import (
"fmt"
"time"

"github.com/tarantool/go-tarantool/v2"
_ "github.com/tarantool/go-tarantool/v2/datetime"
_ "github.com/tarantool/go-tarantool/v2/decimal"
_ "github.com/tarantool/go-tarantool/v2/uuid"
"github.com/tarantool/go-tarantool/v3"
_ "github.com/tarantool/go-tarantool/v3/datetime"
_ "github.com/tarantool/go-tarantool/v3/decimal"
_ "github.com/tarantool/go-tarantool/v3/uuid"
)

func main() {
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ faster than other packages according to public benchmarks.
We assume that you have Tarantool version 1.10+ and a modern Linux or BSD
operating system.

You need a current version of `go`, version 1.20 or later (use `go version` to
You need a current version of `go`, version 1.24 or later (use `go version` to
check the version number). Do not use `gccgo-go`.

**Note:** If your `go` version is older than 1.20 or if `go` is not installed,
**Note:** If your `go` version is older than 1.24 or if `go` is not installed,
download and run the latest tarball from [golang.org][golang-dl].

The package `go-tarantool` is located in [tarantool/go-tarantool][go-tarantool]
Expand Down Expand Up @@ -98,10 +98,10 @@ import (
"fmt"
"time"

"github.com/tarantool/go-tarantool/v2"
_ "github.com/tarantool/go-tarantool/v2/datetime"
_ "github.com/tarantool/go-tarantool/v2/decimal"
_ "github.com/tarantool/go-tarantool/v2/uuid"
"github.com/tarantool/go-tarantool/v3"
_ "github.com/tarantool/go-tarantool/v3/datetime"
_ "github.com/tarantool/go-tarantool/v3/decimal"
_ "github.com/tarantool/go-tarantool/v3/uuid"
)

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

"github.com/tarantool/go-tarantool/v2"
_ "github.com/tarantool/go-tarantool/v2/datetime"
_ "github.com/tarantool/go-tarantool/v2/decimal"
_ "github.com/tarantool/go-tarantool/v2/uuid"
"github.com/tarantool/go-tarantool/v3"
_ "github.com/tarantool/go-tarantool/v3/datetime"
_ "github.com/tarantool/go-tarantool/v3/decimal"
_ "github.com/tarantool/go-tarantool/v3/uuid"
"github.com/tarantool/go-tlsdialer"
)

Expand Down
3 changes: 2 additions & 1 deletion arrow/arrow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import (
"testing"

"github.com/stretchr/testify/require"
"github.com/tarantool/go-tarantool/v2/arrow"
"github.com/vmihailenco/msgpack/v5"

"github.com/tarantool/go-tarantool/v3/arrow"
)

var longArrow, _ = hex.DecodeString("ffffffff70000000040000009effffff0400010004000000" +
Expand Down
4 changes: 2 additions & 2 deletions arrow/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"log"
"time"

"github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v2/arrow"
"github.com/tarantool/go-tarantool/v3"
"github.com/tarantool/go-tarantool/v3/arrow"
)

var arrowBinData, _ = hex.DecodeString("ffffffff70000000040000009effffff0400010004000000" +
Expand Down
3 changes: 2 additions & 1 deletion arrow/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"io"

"github.com/tarantool/go-iproto"
"github.com/tarantool/go-tarantool/v2"
"github.com/vmihailenco/msgpack/v5"

"github.com/tarantool/go-tarantool/v3"
)

// InsertRequest helps you to create an insert request object for execution
Expand Down
5 changes: 3 additions & 2 deletions arrow/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (

"github.com/stretchr/testify/require"
"github.com/tarantool/go-iproto"
"github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v2/arrow"
"github.com/vmihailenco/msgpack/v5"

"github.com/tarantool/go-tarantool/v3"
"github.com/tarantool/go-tarantool/v3/arrow"
)

const validSpace uint32 = 1 // Any valid value != default.
Expand Down
6 changes: 3 additions & 3 deletions arrow/tarantool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/tarantool/go-iproto"

"github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v2/arrow"
"github.com/tarantool/go-tarantool/v2/test_helpers"
"github.com/tarantool/go-tarantool/v3"
"github.com/tarantool/go-tarantool/v3/arrow"
"github.com/tarantool/go-tarantool/v3/test_helpers"
)

var isArrowSupported = false
Expand Down
2 changes: 1 addition & 1 deletion auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
. "github.com/tarantool/go-tarantool/v2"
. "github.com/tarantool/go-tarantool/v3"
)

func TestAuth_String(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion box/box.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package box

import (
"github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v3"
)

// Box is a helper that wraps box.* requests.
Expand Down
5 changes: 3 additions & 2 deletions box/box_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tarantool/go-tarantool/v2/box"
"github.com/tarantool/go-tarantool/v2/test_helpers"

"github.com/tarantool/go-tarantool/v3/box"
"github.com/tarantool/go-tarantool/v3/test_helpers"
)

func TestNew(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions box/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"log"
"time"

"github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v2/box"
"github.com/tarantool/go-tarantool/v3"
"github.com/tarantool/go-tarantool/v3/box"
)

func ExampleBox_Info() {
Expand Down
3 changes: 2 additions & 1 deletion box/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package box
import (
"fmt"

"github.com/tarantool/go-tarantool/v2"
"github.com/vmihailenco/msgpack/v5"

"github.com/tarantool/go-tarantool/v3"
)

var _ tarantool.Request = (*InfoRequest)(nil)
Expand Down
2 changes: 1 addition & 1 deletion box/info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/vmihailenco/msgpack/v5"

"github.com/tarantool/go-tarantool/v2/box"
"github.com/tarantool/go-tarantool/v3/box"
)

func TestInfo(t *testing.T) {
Expand Down
4 changes: 3 additions & 1 deletion box/schema.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package box

import "github.com/tarantool/go-tarantool/v2"
import (
"github.com/tarantool/go-tarantool/v3"
)

// Schema represents the schema-related operations in Tarantool.
// It holds a connection to interact with the Tarantool instance.
Expand Down
3 changes: 2 additions & 1 deletion box/schema_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"fmt"
"strings"

"github.com/tarantool/go-tarantool/v2"
"github.com/vmihailenco/msgpack/v5"

"github.com/tarantool/go-tarantool/v3"
)

// SchemaUser provides methods to interact with schema-related user operations in Tarantool.
Expand Down
4 changes: 2 additions & 2 deletions box/schema_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tarantool/go-tarantool/v2"
"github.com/vmihailenco/msgpack/v5"
"github.com/vmihailenco/msgpack/v5/msgpcode"

"github.com/tarantool/go-tarantool/v2/box"
"github.com/tarantool/go-tarantool/v3"
"github.com/tarantool/go-tarantool/v3/box"
)

func TestUserExistsResponse_DecodeMsgpack(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion box/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package box
import (
"context"

"github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v3"
)

// Session struct represents a connection session to Tarantool.
Expand Down
4 changes: 2 additions & 2 deletions box/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/stretchr/testify/require"

"github.com/tarantool/go-tarantool/v2/box"
th "github.com/tarantool/go-tarantool/v2/test_helpers"
"github.com/tarantool/go-tarantool/v3/box"
th "github.com/tarantool/go-tarantool/v3/test_helpers"
)

func TestBox_Session(t *testing.T) {
Expand Down
7 changes: 4 additions & 3 deletions box/tarantool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import (
"github.com/google/uuid"
"github.com/stretchr/testify/require"
"github.com/tarantool/go-iproto"
"github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v2/box"
"github.com/tarantool/go-tarantool/v2/test_helpers"

"github.com/tarantool/go-tarantool/v3"
"github.com/tarantool/go-tarantool/v3/box"
"github.com/tarantool/go-tarantool/v3/test_helpers"
)

var server = "127.0.0.1:3013"
Expand Down
4 changes: 2 additions & 2 deletions box_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/vmihailenco/msgpack/v5"

. "github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v2/test_helpers"
. "github.com/tarantool/go-tarantool/v3"
"github.com/tarantool/go-tarantool/v3/test_helpers"
)

var samples = map[string]BoxError{
Expand Down
2 changes: 1 addition & 1 deletion client_tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/vmihailenco/msgpack/v5"

"github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v3"
)

func TestOperations_EncodeMsgpack(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion crud/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import (

"github.com/tarantool/go-iproto"

"github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v3"
)

type baseRequest struct {
Expand Down
4 changes: 2 additions & 2 deletions crud/count.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/vmihailenco/msgpack/v5"

"github.com/tarantool/go-tarantool/v2"
"github.com/tarantool/go-tarantool/v3"
)

// CountResult describes result for `crud.count` method.
Expand Down Expand Up @@ -73,7 +73,7 @@ type CountRequest struct {
}

type countArgs struct {
_msgpack struct{} `msgpack:",asArray"` //nolint: structcheck,unused
_msgpack struct{} `msgpack:",asArray"` // nolint: structcheck,unused
Space string
Conditions []Condition
Opts CountOpts
Expand Down
Loading
Loading