The master function is established to store the data from a master table into the memory. Its return is an instance of the Record class. The first calling to a master means to load it into the memory, and the second calling means to get records from memory.
var record1 = db.master("user").sort("years", "asc"); var record2 = db.master("user", true);
Calling | Returning |
---|---|
db . master ( masterId ) | Record |
db . master ( masterId , reload ) | |
db . master ( masterId , jdbcResourceName ) | |
db . master ( masterId , reload, jdbcResourceName ) |
Parameter | Type | Description |
---|---|---|
masterId | String | The name of a master table. |
reload | Boolean | The flag to load the master again event it has been loaded. |
jdbcResourceName | String | To execute SQL in another database resource, but not the default.
For efw-4iAP, it is shared database id. |