Now if you want to save data to it (or insert a row), do the following
If you want to read off of the data store, do the following
The reason why I put 'global' is because global signifies storing data for all characters between the account. As the developer, you have a choice of scoping:
- 'profile'
- 'char'
- 'realm'
- 'race'
- 'faction'
- 'class'
- 'factionrealm'
- 'global'
- 'profiles'
Since the addon I'm developing stores data across all characters I set mine up for global data collection.