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). Replace v6 with v5 or v4 to use previous versions. 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. When DiscoverHosts is true any nodes are added to the cluster after the initial connection then the new node will be added to the pool of available nodes used by RethinkDB-go.
Features
- User Authentication
- Connect to a cluster
- Query Functions
- Run returns a cursor which can be used to view all rows returned
- RunWrite returns a WriteResponse and should be used for queries such as Insert, Update, etc.
- Exec sends a query to the server and closes the connection immediately after reading the response from the database