db.table(name) → table
Example: Return all documents in the table ‘marvel’ of the default database.
Example: Return all documents in the table ‘marvel’ of the database ‘heroes’.
There are two optArgs that may be specified.
read_mode: One of three possible values affecting the consistency guarantee for the table read:
singlereturns values that are in memory (but not necessarily written to disk) on the primary replica. This is the default.
majoritywill only return values that are safely committed on disk on a majority of replicas. This requires sending a message to every replica on each read, so it is the slowest but most consistent.
outdatedwill return values that are in memory on an arbitrarily-selected replica. This is the fastest but least consistent.
identifier_format: possible values are
uuid, with a default of
name. If set to
uuid, then system tables will refer to servers, databases and tables by UUID rather than name. (This only has an effect when used with system tables.)
Example: Allow potentially out-of-date data in exchange for faster reads.
Couldn't find what you were looking for?
© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.