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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ func Example() {
70
70
71
71
Setting up a basic connection with RethinkDB is simple:
72
72
73
-
[embedmd]:# (example_connect_test.go go /func ExampleConnect\(\) {/ /(?m)^}/)
73
+
[embedmd]:#(example_connect_test.go go /func ExampleConnect\(\) {/ /^}/)
74
74
```go
75
75
funcExampleConnect() {
76
76
varerrerror
@@ -92,7 +92,7 @@ The driver uses a connection pool at all times, by default it creates and frees
92
92
93
93
To configure the connection pool `InitialCap`, `MaxOpen` and `Timeout` can be specified during connection. If you wish to change the value of `InitialCap` or `MaxOpen` during runtime then the functions `SetInitialPoolCap` and `SetMaxOpenConns` can be used.
94
94
95
-
[embedmd]:# (example_connect_test.go go /func ExampleConnect_connectionPool\(\) {/ /(?m)^}/)
95
+
[embedmd]:#(example_connect_test.go go /func ExampleConnect_connectionPool\(\) {/ /^}/)
To connect to a RethinkDB cluster which has multiple nodes you can use the following syntax. When connecting to a cluster with multiple nodes queries will be distributed between these nodes.
114
114
115
-
[embedmd]:# (example_connect_test.go go /func ExampleConnect_cluster\(\) {/ /(?m)^}/)
115
+
[embedmd]:#(example_connect_test.go go /func ExampleConnect_cluster\(\) {/ /^}/)
0 commit comments