Mercurial > wow > askmrrobot
comparison Libs/AceDB-3.0/AceDB-3.0.lua @ 106:e635cd648e01 v49
7.2 update
| author | yellowfive | 
|---|---|
| date | Tue, 28 Mar 2017 16:10:00 -0700 | 
| parents | 01b63b8ed811 | 
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| 105:3ce266c86bd3 | 106:e635cd648e01 | 
|---|---|
| 8 -- * **realm** Realm-specific data. All of the players characters on the same realm share this database. | 8 -- * **realm** Realm-specific data. All of the players characters on the same realm share this database. | 
| 9 -- * **class** Class-specific data. All of the players characters of the same class share this database. | 9 -- * **class** Class-specific data. All of the players characters of the same class share this database. | 
| 10 -- * **race** Race-specific data. All of the players characters of the same race share this database. | 10 -- * **race** Race-specific data. All of the players characters of the same race share this database. | 
| 11 -- * **faction** Faction-specific data. All of the players characters of the same faction share this database. | 11 -- * **faction** Faction-specific data. All of the players characters of the same faction share this database. | 
| 12 -- * **factionrealm** Faction and realm specific data. All of the players characters on the same realm and of the same faction share this database. | 12 -- * **factionrealm** Faction and realm specific data. All of the players characters on the same realm and of the same faction share this database. | 
| 13 -- * **locale** Locale specific data, based on the locale of the players game client. | |
| 13 -- * **global** Global Data. All characters on the same account share this database. | 14 -- * **global** Global Data. All characters on the same account share this database. | 
| 14 -- * **profile** Profile-specific data. All characters using the same profile share this database. The user can control which profile should be used. | 15 -- * **profile** Profile-specific data. All characters using the same profile share this database. The user can control which profile should be used. | 
| 15 -- | 16 -- | 
| 16 -- Creating a new Database using the `:New` function will return a new DBObject. A database will inherit all functions | 17 -- Creating a new Database using the `:New` function will return a new DBObject. A database will inherit all functions | 
| 17 -- of the DBObjectLib listed here. \\ | 18 -- of the DBObjectLib listed here. \\ | 
| 37 -- -- Assuming the .toc says ## SavedVariables: MyAddonDB | 38 -- -- Assuming the .toc says ## SavedVariables: MyAddonDB | 
| 38 -- self.db = LibStub("AceDB-3.0"):New("MyAddonDB", defaults, true) | 39 -- self.db = LibStub("AceDB-3.0"):New("MyAddonDB", defaults, true) | 
| 39 -- end | 40 -- end | 
| 40 -- @class file | 41 -- @class file | 
| 41 -- @name AceDB-3.0.lua | 42 -- @name AceDB-3.0.lua | 
| 42 -- @release $Id: AceDB-3.0.lua 1124 2014-10-27 21:00:07Z funkydude $ | 43 -- @release $Id: AceDB-3.0.lua 1142 2016-07-11 08:36:19Z nevcairiel $ | 
| 43 local ACEDB_MAJOR, ACEDB_MINOR = "AceDB-3.0", 26 | 44 local ACEDB_MAJOR, ACEDB_MINOR = "AceDB-3.0", 26 | 
| 44 local AceDB, oldminor = LibStub:NewLibrary(ACEDB_MAJOR, ACEDB_MINOR) | 45 local AceDB, oldminor = LibStub:NewLibrary(ACEDB_MAJOR, ACEDB_MINOR) | 
| 45 | 46 | 
| 46 if not AceDB then return end -- No upgrade needed | 47 if not AceDB then return end -- No upgrade needed | 
| 47 | 48 | 
