Skip to content
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")

function GeminiDBExample:OnInitialize()
  self.db = Apollo.GetPackage("Gemini:DB-1.0").tPackage:New(self)
end
Clone this wiki locally