How am I able to print all of that data inside of my datastore database without knowing the keys?
Every example I've seen uses OrderedDataStore, which isn't released yet.
How am I able to print all of that data inside of my datastore database without knowing the keys?
Every example I've seen uses OrderedDataStore, which isn't released yet.
Currently there is no way to get all of the keys within a datastore.
However, you can manage a list yourself by having a main key that consists of a table of all other keys. Whenever you create a new key, call UpdateAsync on the main key and add that new key to the table.
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
Thank you. Now that you mention it, I remember Unclear saying that he managed his player database this way.
Yeah, that's how I did it.
Wait, so how can I update the key's table without deleting all of the previous data?
Just update it like you regularly would with table[key], and update over the datastore.