Originally Posted by Seerah
The way I understand AceDB (I don't use it myself) is that it only stores settings a user has changed from the default. If a user is still using a default setting (even if just 1 out of 20), it won't bother to write that 1 to file.
|
Correct.
Code:
local defaults = {
profile = {
enabled = true,
pet = "dog"
}
}
Let's first assume the user changes nothing, in which case there is no file written in the SavedVariables folder. Next, let's assume the user changes pet = "cat". In this case, a file is created, containing something like this:
Code:
MyAddOnDB = {
["Seerah - Lightbringer"] = { -- if the character "Seerah" was on the realm "Lightbringer"
pet = "cat",
},
}
You will notice that there is no entry for "enabled" because that was not changed by the user, and is still the default.