You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sinaloit edited this page May 29, 2014
·
4 revisions
You can use GeminiDB either with GeminiAddon or in a stand-alone configuration.
Simply assigned the result of the New call to where you want to store the database.
Note: Using GeminiDB automatically assigns OnSave and OnRestore handlers to your Addon and overwriting them will most likely cause the DB to not load properly.
GeminiDBExample=Apollo.GetPackage("Gemini:Addon-1.1").tPackage:NewAddon("GeminiDBExample")
functionGeminiDBExample:OnInitialize()
self.db=Apollo.GetPackage("Gemini:DB-1.0").tPackage:New(self)
end