The RethinkDB JavaScript driver provides programmatic access to RethinkDB, a NoSQL database known for its real-time capabilities via push queries. It is primarily designed for Node.js environments and implements the ReQL query language. The current stable version is 2.4.4. After a period of inactivity from the original creators, the project transitioned to community-driven maintenance under the Linux Foundation, with recent 2.4.x releases (2023-2024) addressing bug fixes and compilation issues. Its key differentiator remains the 'changefeeds' feature, which allows applications to receive real-time updates as data changes. While the official documentation is still available, the release cadence is irregular, reflecting its community-supported status.
npm install rethinkdbVerified import paths — ran on the pinned version, not inferred.
Demonstrates connecting to RethinkDB, creating a table if it doesn't exist, inserting a document, and fetching all documents.
Consult the RethinkDB 2.4.0 release notes for details on the `r.js` command changes and update usage accordingly.
Ensure all servers in a cluster are upgraded to 2.4.x before deploying new instances. Avoid running mixed-version clusters for extended periods during upgrades.
Always use the default TCP connection for applications. The HTTP connection type is planned to be removed from the driver in future versions.
Before upgrading to RethinkDB 2.4.0 or later from older major versions, perform a full backup of all your data files to prevent potential data loss.
On affected platforms, ensure a complete cluster upgrade to 2.3.5+ without mixing older versions. On 64-bit Linux/macOS, mixed 2.3.x versions are temporarily tolerated during upgrade.
Ensure the RethinkDB server is running and accessible from your application. Verify the `host` and `port` parameters in your `r.connect()` call match the server's configuration.
Ensure that the database and table exist before attempting to query them. You can use `r.dbCreate('your_db')` and `r.db('your_db').tableCreate('your_table')` to create them programmatically or via the RethinkDB Data Explorer.All ReQL queries must be terminated with a `.run(connection, callback)` or `await .run(connection)` call to execute them against the database. Verify your ReQL chain for correct command usage.
No dependency data recorded yet.