You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10

11
11
12
-
Current version: v4.0.0 (RethinkDB v2.3)
12
+
Current version: v4.1.0 (RethinkDB v2.3)
13
13
14
14
<!-- This project is no longer maintained, for more information see the [v3.0.0 release](https://github.com/gorethink/gorethink/releases/tag/v3.0.0)-->
15
15
@@ -40,7 +40,7 @@ import (
40
40
41
41
funcExample() {
42
42
session, err:= r.Connect(r.ConnectOpts{
43
-
Address: url,
43
+
Address: url,// endpoint without http
44
44
})
45
45
if err != nil {
46
46
log.Fatalln(err)
@@ -400,6 +400,8 @@ Sometimes the default behaviour for converting Go types to and from ReQL is not
400
400
401
401
An good example of how to use these interfaces is in the [`types`](https://github.com/gorethink/gorethink/blob/master/types/geometry.go#L84-L106) package, in this package the `Point` type is encoded as the `GEOMETRY` pseudo-type instead of a normal JSON object.
402
402
403
+
On the other side, you can implement external encode/decode functions with [`SetTypeEncoding`](https://godoc.org/github.com/gorethink/gorethink/encoding#SetTypeEncoding) function.
404
+
403
405
## Logging
404
406
405
407
By default the driver logs are disabled however when enabled the driver will log errors when it fails to connect to the database. If you would like more verbose error logging you can call `r.SetVerbose(true)`.
0 commit comments