{"repo":"rethinkdb/rethinkdb-go","free":true,"listed":false,"github":"https://github.com/rethinkdb/rethinkdb-go","clone":"git clone https://github.com/rethinkdb/rethinkdb-go.git","description":"Go language driver for RethinkDB","language":"Go","stars":1646,"topics":["rethinkdb","go","gorethink","driver","rethinkdb-go","golang"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"RethinkDB-go - RethinkDB Driver for Go Go driver for RethinkDB Current version: v6.2.1 (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). If you need any help you can find me on the RethinkDB slack in the #gorethink channel. Installation Replace v6 with v5 or v4 to use previous versions. Example [embedmd]:# (example test.go go) Connection Basic Connection Setting up a basic connection with RethinkDB is simple: [embedmd]:# (example connect test.go go /func ExampleConnect\\(\\) {/ /^}/) See the documentation for a list of supported arguments to Connect(). Connection Pool The driver uses a connection pool at all times, by default it creates and frees connections automatically. It's safe for concurrent use by multiple goroutines. 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. [embedmd]:# (example connect test.go go /func ExampleConnect connectionPool\\(\\) {/ /^}/) Connect to a cluster 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. [embedmd]:# (example connect test.go go /func ExampleConnect cluster\\(\\) {/ /^}/) ","default_branch":null,"files":null,"tree":[],"storefront":"/r/rethinkdb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rethinkdb/rethinkdb-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}