->select()
Selects all records in a table, or a specific record, from the database.
Method Syntax
$db->select($thing)
Arguments
| Arguments | Type | Description |
|---|
thing required | string, RecordId or StringRecordId
| The table name or a RecordId to select. |
Example usage
$people = $db->select('person');
$person = $db->select(new RecordId('person', 'h5wxrf2ewk8xjxosxtyc'));
$person = $db->select(new StringRecordId('person:h5wxrf2ewk8xjxosxtyc'));
Translated query
This function will run the following query in the database.
SELECT * FROM $thing;