Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1015 Bytes

db.master.md

File metadata and controls

25 lines (19 loc) · 1015 Bytes

db.master

The master function is established to store the data from a master table into memory. Its return is an instance of the Record class. The first call to a master table loads it into memory, and subsequent calls retrieve records from memory.

Sample for Event

var record1 = db.master("user").sort("years", "asc");
var record2 = db.master("user", true);

API

Calling Returning
db. master ( masterId ) Record
db. master ( masterId, reload ) Record
db. master ( masterId, jdbcResourceName ) Record
db. master ( masterId, reload, jdbcResourceName ) Record
Parameter Type Description
masterId String The name of a master table.
reload Boolean The flag to reload the master table, even if it has already been loaded.
jdbcResourceName String To execute SQL in another database resource, not the default.