Skip to content

Commit e52e9b2

Browse files
committed
readme: support Tarantool 1.10+
Technically, the connector can now work with Tarantool 1.6+. But we decided to simplify our CI and do not declare support for older versions [1]. 1. #198
1 parent 0ffd926 commit e52e9b2

File tree

2 files changed

+28
-32
lines changed

2 files changed

+28
-32
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Client in Go for Tarantool
1313

1414
The package `go-tarantool` contains everything you need to connect to
15-
[Tarantool 1.6+][tarantool-site].
15+
[Tarantool 1.10+][tarantool-site].
1616

1717
The advantage of integrating Go with Tarantool, which is an application server
1818
plus a DBMS, is that Go programmers can handle databases and perform on-the-fly
@@ -32,7 +32,7 @@ faster than other packages according to public benchmarks.
3232

3333
## Installation
3434

35-
We assume that you have Tarantool version 1.6+ and a modern Linux or BSD
35+
We assume that you have Tarantool version 1.10+ and a modern Linux or BSD
3636
operating system.
3737

3838
You need a current version of `go`, version 1.13 or later (use `go version` to

tarantool_test.go

+26-30
Original file line numberDiff line numberDiff line change
@@ -977,21 +977,19 @@ func TestClient(t *testing.T) {
977977
}
978978

979979
// Upsert
980-
if strings.Compare(conn.Greeting.Version, "Tarantool 1.6.7") >= 0 {
981-
resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}})
982-
if err != nil {
983-
t.Fatalf("Failed to Upsert (insert): %s", err.Error())
984-
}
985-
if resp == nil {
986-
t.Errorf("Response is nil after Upsert (insert)")
987-
}
988-
resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}})
989-
if err != nil {
990-
t.Fatalf("Failed to Upsert (update): %s", err.Error())
991-
}
992-
if resp == nil {
993-
t.Errorf("Response is nil after Upsert (update)")
994-
}
980+
resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}})
981+
if err != nil {
982+
t.Fatalf("Failed to Upsert (insert): %s", err.Error())
983+
}
984+
if resp == nil {
985+
t.Errorf("Response is nil after Upsert (insert)")
986+
}
987+
resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}})
988+
if err != nil {
989+
t.Fatalf("Failed to Upsert (update): %s", err.Error())
990+
}
991+
if resp == nil {
992+
t.Errorf("Response is nil after Upsert (update)")
995993
}
996994

997995
// Select
@@ -2009,21 +2007,19 @@ func TestClientNamed(t *testing.T) {
20092007
}
20102008

20112009
// Upsert
2012-
if strings.Compare(conn.Greeting.Version, "Tarantool 1.6.7") >= 0 {
2013-
resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}})
2014-
if err != nil {
2015-
t.Fatalf("Failed to Upsert (insert): %s", err.Error())
2016-
}
2017-
if resp == nil {
2018-
t.Errorf("Response is nil after Upsert (insert)")
2019-
}
2020-
resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}})
2021-
if err != nil {
2022-
t.Fatalf("Failed to Upsert (update): %s", err.Error())
2023-
}
2024-
if resp == nil {
2025-
t.Errorf("Response is nil after Upsert (update)")
2026-
}
2010+
resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}})
2011+
if err != nil {
2012+
t.Fatalf("Failed to Upsert (insert): %s", err.Error())
2013+
}
2014+
if resp == nil {
2015+
t.Errorf("Response is nil after Upsert (insert)")
2016+
}
2017+
resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}})
2018+
if err != nil {
2019+
t.Fatalf("Failed to Upsert (update): %s", err.Error())
2020+
}
2021+
if resp == nil {
2022+
t.Errorf("Response is nil after Upsert (update)")
20272023
}
20282024

20292025
// Select

0 commit comments

Comments
 (0)