Skip to content

Commit 0650b5a

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 a1f28a6 commit 0650b5a

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
@@ -945,21 +945,19 @@ func TestClient(t *testing.T) {
945945
}
946946

947947
// Upsert
948-
if strings.Compare(conn.Greeting.Version, "Tarantool 1.6.7") >= 0 {
949-
resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}})
950-
if err != nil {
951-
t.Fatalf("Failed to Upsert (insert): %s", err.Error())
952-
}
953-
if resp == nil {
954-
t.Errorf("Response is nil after Upsert (insert)")
955-
}
956-
resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}})
957-
if err != nil {
958-
t.Fatalf("Failed to Upsert (update): %s", err.Error())
959-
}
960-
if resp == nil {
961-
t.Errorf("Response is nil after Upsert (update)")
962-
}
948+
resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}})
949+
if err != nil {
950+
t.Fatalf("Failed to Upsert (insert): %s", err.Error())
951+
}
952+
if resp == nil {
953+
t.Errorf("Response is nil after Upsert (insert)")
954+
}
955+
resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}})
956+
if err != nil {
957+
t.Fatalf("Failed to Upsert (update): %s", err.Error())
958+
}
959+
if resp == nil {
960+
t.Errorf("Response is nil after Upsert (update)")
963961
}
964962

965963
// Select
@@ -1977,21 +1975,19 @@ func TestClientNamed(t *testing.T) {
19771975
}
19781976

19791977
// Upsert
1980-
if strings.Compare(conn.Greeting.Version, "Tarantool 1.6.7") >= 0 {
1981-
resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}})
1982-
if err != nil {
1983-
t.Fatalf("Failed to Upsert (insert): %s", err.Error())
1984-
}
1985-
if resp == nil {
1986-
t.Errorf("Response is nil after Upsert (insert)")
1987-
}
1988-
resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}})
1989-
if err != nil {
1990-
t.Fatalf("Failed to Upsert (update): %s", err.Error())
1991-
}
1992-
if resp == nil {
1993-
t.Errorf("Response is nil after Upsert (update)")
1994-
}
1978+
resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}})
1979+
if err != nil {
1980+
t.Fatalf("Failed to Upsert (insert): %s", err.Error())
1981+
}
1982+
if resp == nil {
1983+
t.Errorf("Response is nil after Upsert (insert)")
1984+
}
1985+
resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}})
1986+
if err != nil {
1987+
t.Fatalf("Failed to Upsert (update): %s", err.Error())
1988+
}
1989+
if resp == nil {
1990+
t.Errorf("Response is nil after Upsert (update)")
19951991
}
19961992

19971993
// Select

0 commit comments

Comments
 (0)