Skip to content
Closed
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
12 changes: 6 additions & 6 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,19 +36,19 @@ 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:
- golang: '1.20'
- golang: '1.24'
tarantool: 'master'
coveralls: true
fuzzing: false
- golang: '1.20'
- golang: '1.24'
tarantool: 'master'
fuzzing: true
coveralls: false
fuzzing: true
uses: ./.github/workflows/reusable-run.yml
with:
os: ubuntu-24.04
Expand All @@ -72,7 +72,7 @@ jobs:
fail-fast: false
matrix:
golang:
- '1.20'
- '1.24'
- 'stable'
runs-on:
- macos-14
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.

### Added

* New types for MessagePack extensions compatible with go-option (#459).

### Changed

* Required Go version is `1.24` now (#456).

### Fixed

## [v2.4.1] - 2025-10-16
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
13 changes: 13 additions & 0 deletions arrow/arrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"github.com/vmihailenco/msgpack/v5"
)

//go:generate go tool gentypes -ext-code 8 Arrow

// Arrow MessagePack extension type.
const arrowExtId = 8

Expand All @@ -26,6 +28,17 @@ func (a Arrow) Raw() []byte {
return a.data
}

// MarshalMsgpack implements a custom msgpack marshaler for extension type.
func (a Arrow) MarshalMsgpack() ([]byte, error) {
return a.data, nil
}

// UnmarshalMsgpack implements a custom msgpack unmarshaler for extension type.
func (a *Arrow) UnmarshalMsgpack(data []byte) error {
a.data = data
return nil
}

func arrowDecoder(d *msgpack.Decoder, v reflect.Value, extLen int) error {
arrow := Arrow{
data: make([]byte, extLen),
Expand Down
Loading
Loading