Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.16 KB

db.master.md

File metadata and controls

30 lines (24 loc) · 1.16 KB

db.master

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.

Sample for Event

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

API

CallingReturning
db . master ( masterId )Record
db . master ( masterId , reload )
db . master ( masterId , jdbcResourceName )
db . master ( masterId , reload, jdbcResourceName )
ParameterTypeDescription
masterIdStringThe name of a master table.
reloadBooleanThe flag to load the master again event it has been loaded.
jdbcResourceNameStringTo execute SQL in another database resource, but not the default.