Skip to content

Commit 352e5a3

Browse files
authored
Merge pull request #448 from rethinkdb/develop
rename package & integration test fixes
2 parents 64076e7 + d4f52ab commit 352e5a3

File tree

134 files changed

+4210
-4090
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+4210
-4090
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ _testmain.go
2727
.wercker
2828

2929
cover.html
30+
.idea/

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ go:
44
- 1.7.x
55
- 1.8.x
66
- 1.9.x
7-
- tip
7+
- 1.10.x
8+
- 1.11.x
9+
- master
810

911
cache: apt
1012

11-
go_import_path: gopkg.in/gorethink/gorethink.v4
13+
go_import_path: gopkg.in/rethinkdb/rethinkdb-go.v5
1214

1315
install: go get -t ./...
1416

@@ -18,8 +20,10 @@ before_script:
1820
- sudo apt-get update
1921
- sudo apt-get install rethinkdb
2022
- rethinkdb > /dev/null 2>&1 &
21-
- rethinkdb --port-offset 1 --directory rethinkdb_data1 --join localhost:29016 > /dev/null 2>&1 &
23+
- rethinkdb --port-offset 1 --directory rethinkdb_data1 > /dev/null 2>&1 &
2224
- rethinkdb --port-offset 2 --directory rethinkdb_data2 --join localhost:29016 > /dev/null 2>&1 &
2325
- rethinkdb --port-offset 3 --directory rethinkdb_data3 --join localhost:29016 > /dev/null 2>&1 &
2426

25-
script: go test -tags='cluster' -short -race -v ./...
27+
script:
28+
- go test -race .
29+
- go test -tags='cluster' -short -race -v ./...

CHANGELOG.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## v5.0.0 - 2018-09-12
6+
7+
- Moved to rethinkdb organization
8+
- Renamed to rethinkdb-go repo
9+
- Renamed to rethinkdb package
10+
511
## v4.1.0 - 2018-08-29
612

713
### Fixed
@@ -65,7 +71,7 @@ Unfortunately this will likely be the last release I plan to work on. This is du
6571
- 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.
6672
- The driver itself is in a relatively good condition and many companies are using the existing version in production.
6773

68-
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.
74+
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.
6975

7076
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.
7177

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

136142
```
137143
type User struct {
138-
Company string `gorethink:"id[0]"`
139-
Name string `gorethink:"id[1]"`
140-
Age int `gorethink:"age"`
144+
Company string `rethinkdb:"id[0]"`
145+
Name string `rethinkdb:"id[1]"`
146+
Age int `rethinkdb:"age"`
141147
}
142148
// Creates
143149
{"id": [COMPANY, NAME], "age": AGE}
@@ -254,7 +260,7 @@ type User struct {
254260

255261
### Changed
256262

257-
- 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:
263+
- 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:
258264
```go
259265
r.Connect(
260266
...
@@ -294,7 +300,7 @@ r.Connect(
294300

295301
### Added
296302
- Added the ability to reference subdocuments when inserting new documents, for more information see the documentation in the readme.
297-
- 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")`.
303+
- 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")`.
298304
- Added helper functions for checking the error type of a write query, this is useful when calling `RunWrite`.
299305
+ Added `IsConflictErr` which returns true when RethinkDB returns a duplicate key error.
300306
+ Added `IsTypeErr` which returns true when RethinkDB returns an unexpected type error.
@@ -319,7 +325,7 @@ r.Connect(
319325

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

324330
## v1.3.0 - 2016-01-11
325331

@@ -410,9 +416,9 @@ r.Connect(
410416

411417
## v1.0.0 - 2015-06-27
412418

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

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

417423
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.
418424

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
test:
2-
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
3-
cp -R . ${GOPATH}/src/gopkg.in/gorethink/gorethink.v4
4-
go test -coverprofile=cover.out -race gopkg.in/gorethink/gorethink.v4; true
2+
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
3+
cp -R . ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5
4+
go test -coverprofile=cover.out -race gopkg.in/rethinkdb/rethinkdb-go.v5; true
55
go tool cover -html=cover.out -o cover.html; true
66
rm -f cover.out; true
7-
rm -rf ${GOPATH}/src/gopkg.in/gorethink/gorethink.v4
8-
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
7+
rm -rf ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5
8+
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

0 commit comments

Comments
 (0)