Selects all records in a table, or a specific record. This is a convenience wrapper that runs `SELECT * FROM ;`.
Method Syntax
client.select(thing, session, txn)Arguments
Argument | Description |
|---|---|
thing | The table or specific record to select. |
session | An optional session id. |
txn | An optional transaction id. |
Example usage
# Select every record in a table
var people = client.select("person")
# Select a specific record
var chiru = client.select("person:chiru")Translated query
SELECT * FROM $thing;