Syntax
Arguments
List of arguments to provide.Name of the table to reference. Must be a valid table name within the selected database.
Optargs
No optional arguments.Returns
Returns a query builder table reference that can be used for further operations like querying,
inserting, updating, or deleting documents.
Behavior
- When called without a database context (
r.table()), operates on the default database. - When called with a database context (
r.db().table()), operates on the specified database. - The table reference itself doesn’t execute any operations until combined with action methods like 
run(). - Returns all documents in the table when executed directly with 
run(). 
Notes & Caveats
- The table must exist before it can be referenced. Use 
tableCreateto create new tables. - Table names are case-sensitive.
 - Table names must follow RuloDB naming conventions (ASCII alphanumeric characters, hyphens, and underscores).
 
Example
Reference a table in the default database
Get all users from theusers table in the default database.
Reference a table in a specific database
Get all orders from theorders table in the ecommerce database.
Chain operations on a table
Filter and sort users from a specific table.Related Functions
r- Referencing the query builderdb- Referencing a databasetableCreate- Creating a tabletableDrop- Dropping a tabletableList- Listing tablesinsert- Inserting documentsfilter- Filtering documentsget- Getting a specific document
Found a typo? Or maybe a broken link? RuloDB is open-source, help us fix it!

