ToolJet/docs/versioned_docs/version-3.16.0-LTS/data-sources/rethinkdb.md
2026-02-12 14:27:32 +05:30

6.1 KiB

id title
rethinkdb RethinkDB

ToolJet can connect to RethinkDB databases to read and write data. For more info visit this Rethink Docs.

Connection

To establish a connection with the RethinkDB data source, you can either click on the + Add new Data source button located on the query panel or navigate to the Data Sources page through the ToolJet dashboard.

ToolJet requires the following to connect to a RethinkDB data source:

  • Database
  • Host
  • Username
  • Password
  • Port

<img className="screenshot-full img-full" style={{marginBottom:'15px'}} src="/img/datasource-reference/rethink/connection.png" alt="RethinkDB Connection Page" />

Querying RethinkDB

  1. Click on + Add button of the query manager at the bottom panel of the editor.
  2. Select the RethinkDB data source added in the previous step.
  3. Select the desired operation.
  4. Click on the Preview button to preview the output or Click on the Run button to trigger the query.

<img className="screenshot-full img-full" style={{marginBottom:'15px'}} src="/img/datasource-reference/rethink/listops.png" alt="RethinkDB Connection Page" />

Supported Queries

:::info NOTE: The name field in all operations is the database name if not given will take the default database used for the connection. :::

Create Database

Creates a new database in RethinkDB.

Required Parameter

  • Database Name

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/create-db-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

Create Table

Creates a new table in a specified database.

Required Parameter

  • Database Name
  • Tablename

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/create-table-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

Delete Database

Deletes an existing database in RethinkDB.

Required Parameter

  • Database Name

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/del-db-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

Delete Table

Deletes a table from a specified database.

Required Parameter

  • Database Name
  • Tablename

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/del-table-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

List All Database

Lists all available databases.

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/listall-db.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

List All Table

Lists all tables in a specified database.

Required Parameter

  • Database Name

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/listall-table.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

List All Documents

Retrieves all documents from a specified table.

Required Parameter

  • Database Name
  • Tablename

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/listall-doc-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

Insert Document

Inserts a new document into a specified table.

Required Parameter

  • Database Name
  • Tablename
  • Data

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/insert-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

Example

{ 
  "name": "John Doe",
  "age": 30
}

Retrieve Document by Key

Fetches a document from a specified table by its key.

Required Parameter

  • Database Name
  • Tablename
  • Primary key

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/retrieve-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

Update Document Using ID

Updates a specific document in a table using its ID.

Required Parameter

  • Database Name
  • Tablename
  • Primary key
  • Data

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/update-by-id-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

Example

{ 
  "age": 35 
}

Update All Documents

Updates all documents in a specified table.

Required Parameter

  • Database Name
  • Tablename
  • Data

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/update-all-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

Example

{ 
  "verified": true 
}

Delete Document Using ID

Deletes a specific document in a table using its ID.

Required Parameter

  • Database Name
  • Tablename
  • Primary key

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/del-by-id-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>

Delete All Documents

Deletes all documents from a specified table.

Required Parameter

  • Database Name
  • Tablename

<img className="screenshot-full img-full" src="/img/datasource-reference/rethink/del-all-query.png" alt="RethinkDB Create Database Operation" style={{marginBottom:'15px'}}/>