DataStore

DataStore is the main component of a series of addons that serve as data repositories in game. Their respective purpose is to offer scanning and storing services to other addons.

The advantages of this approach are:

  • data is scanned only once for all client addons (performance gain).
  • data is stored only once for all client addons (memory gain).
  • addon authors can spend more time coding higher level features.
  • each module is an independant addon, and therefore has its own SavedVariables file, meaning that you could clean _Crafts without disturbing _Containers.

Scope : a note to contributing authors

The core of the database is based on my work in Altoholic, and is thus designed with multiple-account support in mind. If client addons want to store data from foreign accounts, the database will be ready for it. Nothing is final at this point though, feel free to contribute, as the concept can and will be perfected.

The scope of each addons is to provide common methods for client addons. For instance, DataStore_Crafts embeds LibPeriodicTable-3.1-Tradeskill allowing it to give more than just scanning & storing data. However, the goal is not to put _everything_ into these addons, they must be seen as an abstraction layer and a service provider, nothing more.

These libraries cannot and should not be embedded, as they all manage their respective SavedVariables.

Existing modules

Each module will exist as a separate addon, so that authors can package only the ones they want with their own project.

More modules will come later.

Information Pages

  • Project overview : A slightly more detailed overview of the scope
  • API : Samples of commonly used methods (work-in-progress)

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Hendo72 Hendo72 Sep 28, 2013 at 16:56 UTC - 0 likes

    I commented about this previously, but received no response.

    I'm still having an issue with datastore and it's modules being uninstalled during updates using Curse Client. I've had to re-install the entire set twice in the last week.

    I haven't pinpointed which addons are doing it, but I'll update this comment when I know.

    I didn't say it was your fault. I said I was going to blame you.

  • Avatar of 420Bunny 420Bunny Sep 12, 2013 at 01:13 UTC - 0 likes

    If I am having an issue with a DataStore function do I post a ticket here or on the module page that I think is giving me problems? (DataStore_Auctions is not storing auction data correctly...its duplicating items...I have to go into the SavVar file and delete out the 800+ lines)

    Edit: I believe I found where the duplicates are being created. I was being lazy and selecting the entire Professions group in TSM_Auctioning instead of just the group I had created for the 400+ glyphs I craft/sell.

    Edit#2: duplicates still being created even with just selecting single craft group in TSM.. posting ticket because having to constantly exit game/delete data from DataStore_Auctions SavVar file is getting annoying

    Last edited Sep 12, 2013 by 420Bunny
  • Avatar of Lombra Lombra Jun 22, 2013 at 13:35 UTC - 0 likes

    Hi,
    not sure where feedback is best suited, but I've found that you need to monitor VOID_STORAGE_UPDATE for void storage items to properly get stored the first time you open void storage, as they are not available on the first VOID_STORAGE_OPEN.

  • Avatar of Thaoky Thaoky Mar 12, 2013 at 09:29 UTC - 0 likes

    @WoWEye: Go

    Yes it will, DataStore & its modules are the foundations of Altoholic, so the latest versions must ALWAYS be used.

    I recommend making a manual download of Altoholic, and to avoid the Curse Client. It is fine for simple addons, but with the architecture of Altoholic+DataStore, the packaging system is not always working fine. I discussed this with admins in the past, it would require big changes on their side to make it work smoothly, so we have to live with it.

  • Avatar of WoWEye WoWEye Feb 15, 2013 at 18:58 UTC - 0 likes

    I notice that updating Altoholic (with curse client) for some reason does not grab the updated DataStore files. Example - my datastore mails is r26 and when i look here there's r38....

    Now, if i grab the r38 and drop it in my folder, will it play nice with the rest of the addon ??

  • Avatar of UABMaddog UABMaddog Aug 19, 2012 at 15:24 UTC - 0 likes

    I have several accounts and use several computer. I was curious if there is a way to copy the database files between computers to keep the data up to date. I log onto all my toons once a month and open their bank/guild bank/bags/professions to keep track of mats and skills. I would love to do this on one computer and use it as the "master" to clone/copy to the other computers.

  • Avatar of Hendo72 Hendo72 Jun 17, 2012 at 16:59 UTC - 0 likes

    Out of curiosity, what would be un-installing ALL of my DataStore files? I've had to re-install my DataStore files twice in the last couple weeks.

    I'm guessing I've updated one of my addons, but I don't understand why it would remove these files.

  • Avatar of Farmbuyer Farmbuyer Dec 16, 2011 at 04:58 UTC - 0 likes

    @kitty1967: Go

    I answered that ticket. It's a Blizzard bug, DataStore has nothing to do with it. Any addon doing anything with menus will be blamed for it. You cannot set a focus using a dropdown menu or you will stumble across their bug, and the addon blamed by the popup has no responsibility whatsoever. You must use the /focus command or set the builtin keybinding to do the same thing.

    This is a long-known bug. Google can tell you more if you're prefer to ignore advice.

  • Avatar of WOWVern WOWVern Dec 03, 2011 at 23:58 UTC - 0 likes

    Is there going to be an update for 4.3?

  • Avatar of kitty1967 kitty1967 Jun 16, 2011 at 23:38 UTC - 0 likes

    Is this project still active? I continuously get a DataStore error when I try to set focus on someone. After clearing the error, attempting to set focus does nothing. Quite aggravating, I use /assist focus in many of my macros.

Facts

Date created
Jul 30, 2009
Category
Last update
Oct 17, 2014
Development stage
Release
License
All Rights Reserved
Curse link
DataStore
Reverse relationships
1
Downloads
786,654
Recent files
  • A: r48 for 6.0.2 Oct 17, 2014
  • A: r47 for 5.4.8 Aug 08, 2014
  • A: r46 for 5.4.8 Jul 27, 2014
  • R: 5.4.007 for 5.4.8 Jul 24, 2014
  • A: r44 for 5.4.8 Jul 22, 2014

Authors