Skip to content

Commit

Permalink
6.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
CMogilko committed Dec 22, 2019
1 parent 6bd1634 commit c04e2e4
Show file tree
Hide file tree
Showing 127 changed files with 218 additions and 206 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -9,7 +9,7 @@ go:

cache: apt

go_import_path: gopkg.in/rethinkdb/rethinkdb-go.v5
go_import_path: gopkg.in/rethinkdb/rethinkdb-go.v6

install: go get -t ./...

Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,16 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## v6.0.0 - 2019-12-22

- 2.4 RethinkDB support
- Added JSON tags to ConnectOpts to make it serializable
- Blocking mocks for responses
- Fix Connect documentation
- Added Type to ChangeResponse
- Added bitwise operations support
- Added write hooks support

## v5.0.1 - 2018-10-18

- Fix noreply queries memory leak due unnecessary for responses
Expand Down
10 changes: 5 additions & 5 deletions Makefile
@@ -1,8 +1,8 @@
test:
test -d ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5 && mv ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5 ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5.bak; true
cp -R . ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5
go test -coverprofile=cover.out -race gopkg.in/rethinkdb/rethinkdb-go.v5; true
test -d ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v6 && mv ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v6 ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v6.bak; true
cp -R . ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v6
go test -coverprofile=cover.out -race gopkg.in/rethinkdb/rethinkdb-go.v6; true
go tool cover -html=cover.out -o cover.html; true
rm -f cover.out; true
rm -rf ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5
test -d ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5.bak && mv ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5.bak ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5; true
rm -rf ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v6
test -d ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v6.bak && mv ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v6.bak ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v6; true
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -8,7 +8,7 @@

![RethinkDB-go Logo](https://raw.github.com/wiki/rethinkdb/rethinkdb-go/gopher-and-thinker-s.png "Golang Gopher and RethinkDB Thinker")

Current version: v5.1.0 (RethinkDB v2.4)
Current version: v6.0.0 (RethinkDB v2.4)

Please note that this version of the driver only supports versions of RethinkDB using the v0.4 protocol (any versions of the driver older than RethinkDB 2.0 will not work).

Expand All @@ -17,10 +17,10 @@ If you need any help you can find me on the [RethinkDB slack](https://rethinkdb.
## Installation

```
go get gopkg.in/rethinkdb/rethinkdb-go.v5
go get gopkg.in/rethinkdb/rethinkdb-go.v6
```

Replace `v5` with `v4` or `v3` to use previous versions.
Replace `v6` with `v5` or `v4` to use previous versions.

## Example

Expand All @@ -32,7 +32,7 @@ import (
"fmt"
"log"

r "gopkg.in/rethinkdb/rethinkdb-go.v5"
r "gopkg.in/rethinkdb/rethinkdb-go.v6"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion connection.go
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/opentracing/opentracing-go/ext"
"github.com/opentracing/opentracing-go/log"
"golang.org/x/net/context"
p "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2"
p "gopkg.in/rethinkdb/rethinkdb-go.v6/ql2"
"sync"
)

Expand Down
2 changes: 1 addition & 1 deletion connection_handshake.go
Expand Up @@ -16,7 +16,7 @@ import (

"golang.org/x/crypto/pbkdf2"

p "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2"
p "gopkg.in/rethinkdb/rethinkdb-go.v6/ql2"
)

type HandshakeVersion int
Expand Down
2 changes: 1 addition & 1 deletion connection_test.go
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/opentracing/opentracing-go/mocktracer"
"golang.org/x/net/context"
test "gopkg.in/check.v1"
p "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2"
p "gopkg.in/rethinkdb/rethinkdb-go.v6/ql2"
"io"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions cursor.go
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/opentracing/opentracing-go"
"golang.org/x/net/context"
"gopkg.in/rethinkdb/rethinkdb-go.v5/encoding"
p "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2"
"gopkg.in/rethinkdb/rethinkdb-go.v6/encoding"
p "gopkg.in/rethinkdb/rethinkdb-go.v6/ql2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cursor_test.go
Expand Up @@ -2,7 +2,7 @@ package rethinkdb

import (
test "gopkg.in/check.v1"
"gopkg.in/rethinkdb/rethinkdb-go.v5/internal/integration/tests"
"gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests"
)

type CursorSuite struct{}
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"strings"

p "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2"
p "gopkg.in/rethinkdb/rethinkdb-go.v6/ql2"
)

var (
Expand Down
4 changes: 3 additions & 1 deletion go.mod
@@ -1,4 +1,4 @@
module gopkg.in/rethinkdb/rethinkdb-go.v5
module gopkg.in/rethinkdb/rethinkdb-go.v6

require (
github.com/cenkalti/backoff v2.0.0+incompatible
Expand All @@ -17,3 +17,5 @@ require (
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
gopkg.in/fatih/pool.v2 v2.0.0
)

go 1.13
4 changes: 2 additions & 2 deletions internal/integration/reql_tests/common.go
Expand Up @@ -9,8 +9,8 @@ import (
"time"

"github.com/stretchr/testify/suite"
r "gopkg.in/rethinkdb/rethinkdb-go.v5"
"gopkg.in/rethinkdb/rethinkdb-go.v5/internal/compare"
r "gopkg.in/rethinkdb/rethinkdb-go.v6"
"gopkg.in/rethinkdb/rethinkdb-go.v6/internal/compare"
)

func maybeRun(query interface{}, session *r.Session, opts r.RunOpts) interface{} {
Expand Down
2 changes: 1 addition & 1 deletion internal/integration/reql_tests/gorethink_test.go
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"runtime"

r "gopkg.in/rethinkdb/rethinkdb-go.v5"
r "gopkg.in/rethinkdb/rethinkdb-go.v6"
)

var url string
Expand Down
4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_aggregation_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/integration/reql_tests/reql_bitwise_test.go
Expand Up @@ -2,7 +2,7 @@ package reql_tests

import (
"github.com/stretchr/testify/suite"
r "gopkg.in/rethinkdb/rethinkdb-go.v5"
r "gopkg.in/rethinkdb/rethinkdb-go.v6"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_changefeeds_edge_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_control_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_array_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_binary_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_bool_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_null_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_number_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_object_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_string_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_typeof_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_uuid_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_default_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_geo_constructors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_geo_geojson_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_geo_indexing_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c04e2e4

Please sign in to comment.