SQL and RethinkDB share very similar terminology. Below is a table of terms and concepts in the two systems.
SQL | RethinkDB |
---|---|
database | database |
table | table |
row | document |
column | field |
table joins | table joins |
primary key | primary key (by default id ) |
index | index |
This is a list of queries for inserting data into a database.
SQL | ReQL |
---|---|
|
|
This is a list of queries for selecting data out of a database.
SQL | ReQL |
---|---|
|
|
|
|
|
If you have a secondary index built on the field
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If you have a secondary index built on the field
|
|
|
|
|
|
|
|
|
|
|
|
|
|
age , you can run a
more efficient query:
|
|
|
|
|
This is a list of commands for updating data in the database.
SQL | ReQL |
---|---|
|
|
|
|
This is a list of queries for deleting data from the database.
SQL | ReQL |
---|---|
|
|
|
|
This is a list of queries for performing joins between multiple tables.
SQL | ReQL |
---|---|
|
Note: If you have an index (primary key or secondary index) built on the field of the right table, you can perform a more efficient join with eq_join.
|
|
|
|
Note: You can perform more efficient
|
|
|
This is a list of queries for performing data aggregation.
SQL | ReQL |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
This is a list of queries for creating and dropping tables and databases.
SQL | ReQL |
---|---|
|
|
|
|
|
Note: RethinkDB is a NoSQL database and does not enforce schemas. Note: The default primary key is |
|
|
|
|
Browse the following resources to learn more about ReQL: