Skip to content

Commit

Permalink
Merge pull request #448 from rethinkdb/develop
Browse files Browse the repository at this point in the history
rename package & integration test fixes
  • Loading branch information
CMogilko authored Sep 12, 2018
2 parents 64076e7 + d4f52ab commit 352e5a3
Show file tree
Hide file tree
Showing 134 changed files with 4,210 additions and 4,090 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ _testmain.go
.wercker

cover.html
.idea/
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ go:
- 1.7.x
- 1.8.x
- 1.9.x
- tip
- 1.10.x
- 1.11.x
- master

cache: apt

go_import_path: gopkg.in/gorethink/gorethink.v4
go_import_path: gopkg.in/rethinkdb/rethinkdb-go.v5

install: go get -t ./...

Expand All @@ -18,8 +20,10 @@ before_script:
- sudo apt-get update
- sudo apt-get install rethinkdb
- rethinkdb > /dev/null 2>&1 &
- rethinkdb --port-offset 1 --directory rethinkdb_data1 --join localhost:29016 > /dev/null 2>&1 &
- rethinkdb --port-offset 1 --directory rethinkdb_data1 > /dev/null 2>&1 &
- rethinkdb --port-offset 2 --directory rethinkdb_data2 --join localhost:29016 > /dev/null 2>&1 &
- rethinkdb --port-offset 3 --directory rethinkdb_data3 --join localhost:29016 > /dev/null 2>&1 &

script: go test -tags='cluster' -short -race -v ./...
script:
- go test -race .
- go test -tags='cluster' -short -race -v ./...
24 changes: 15 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## v5.0.0 - 2018-09-12

- Moved to rethinkdb organization
- Renamed to rethinkdb-go repo
- Renamed to rethinkdb package

## v4.1.0 - 2018-08-29

### Fixed
Expand Down Expand Up @@ -65,7 +71,7 @@ Unfortunately this will likely be the last release I plan to work on. This is du
- The company behind RethinkDB has shut down and while I am sure the community will keep the database going it seems like a good time for me to step away from the project.
- The driver itself is in a relatively good condition and many companies are using the existing version in production.

I hope you understand my decision to step back from the project, if you have any questions or would be interested in take over some of the maintenance of the project please let me know. To make this process easier I have also decided to move the repository to the GoRethink organisation. All existing imports _should_ still work.
I hope you understand my decision to step back from the project, if you have any questions or would be interested in take over some of the maintenance of the project please let me know. To make this process easier I have also decided to move the repository to the RethinkDB-go organisation. All existing imports _should_ still work.

Thanks to everybody who got involved with this project over the last ~4 years and helped out, I have truly enjoyed the time I have spent building this library and I hope both RethinkDB and this driver manage to keep going.

Expand Down Expand Up @@ -135,9 +141,9 @@ r.DB("examples").Table("heroes").GetAll("man_of_steel").OptArgs(r.GetAllOpts{

```
type User struct {
Company string `gorethink:"id[0]"`
Name string `gorethink:"id[1]"`
Age int `gorethink:"age"`
Company string `rethinkdb:"id[0]"`
Name string `rethinkdb:"id[1]"`
Age int `rethinkdb:"age"`
}
// Creates
{"id": [COMPANY, NAME], "age": AGE}
Expand Down Expand Up @@ -254,7 +260,7 @@ type User struct {

### Changed

- GoRethink now uses the v1.0 RethinkDB protocol which supports RethinkDB v2.3 and above. If you are using RethinkDB 2.2 or older please set `HandshakeVersion` when creating a session. For example:
- RethinkDB-go now uses the v1.0 RethinkDB protocol which supports RethinkDB v2.3 and above. If you are using RethinkDB 2.2 or older please set `HandshakeVersion` when creating a session. For example:
```go
r.Connect(
...
Expand Down Expand Up @@ -294,7 +300,7 @@ r.Connect(

### Added
- Added the ability to reference subdocuments when inserting new documents, for more information see the documentation in the readme.
- Added the `SetTags` function which allows GoRethink to override which tags are used when working with structs. For example to support the `json` add the following call `SetTags("gorethink", "json")`.
- Added the `SetTags` function which allows RethinkDB-go to override which tags are used when working with structs. For example to support the `json` add the following call `SetTags("gorethink", "json")`.
- Added helper functions for checking the error type of a write query, this is useful when calling `RunWrite`.
+ Added `IsConflictErr` which returns true when RethinkDB returns a duplicate key error.
+ Added `IsTypeErr` which returns true when RethinkDB returns an unexpected type error.
Expand All @@ -319,7 +325,7 @@ r.Connect(

### Fixed
- Fixed `RunWrite` not defering its call to `Cursor.Close()`. This could cause issues if an error occurred when decoding the result.
- Fixed panic when calling `Error()` on a GoRethink `rqlError`.
- Fixed panic when calling `Error()` on a RethinkDB-go `rqlError`.

## v1.3.0 - 2016-01-11

Expand Down Expand Up @@ -410,9 +416,9 @@ r.Connect(

## v1.0.0 - 2015-06-27

1.0.0 is finally here, This is the first stable production ready release of GoRethink!
1.0.0 is finally here, This is the first stable production ready release of RethinkDB-go!

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

In an attempt to make this library more "idiomatic" some functions have been renamed, for the full list of changes and bug fixes see below.

Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
test:
test -d ${GOPATH}/src/gopkg.in/gorethink/gorethink.v4 && mv ${GOPATH}/src/gopkg.in/gorethink/gorethink.v4 ${GOPATH}/src/gopkg.in/gorethink/gorethink.v4.bak; true
cp -R . ${GOPATH}/src/gopkg.in/gorethink/gorethink.v4
go test -coverprofile=cover.out -race gopkg.in/gorethink/gorethink.v4; true
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
go tool cover -html=cover.out -o cover.html; true
rm -f cover.out; true
rm -rf ${GOPATH}/src/gopkg.in/gorethink/gorethink.v4
test -d ${GOPATH}/src/gopkg.in/gorethink/gorethink.v4.bak && mv ${GOPATH}/src/gopkg.in/gorethink/gorethink.v4.bak ${GOPATH}/src/gopkg.in/gorethink/gorethink.v4; 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
Loading

0 comments on commit 352e5a3

Please sign in to comment.