Still have questions? Join our Discord server and get real time help.
Log in to vote

Getting DataStore data without using OrderedDataStore [closed]

Asked by 6 years ago

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.

Locked by Thewsomeguy, adark, and Articulating

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
Answered by
Merely 2117 Moderation Voter Community Moderator
6 years ago

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.

Thank you. Now that you mention it, I remember Unclear saying that he managed his player database this way. TheGuyWithAShortName 647 — 6y
Yeah, that's how I did it. Unclear 1776 — 6y
Wait, so how can I update the key's table without deleting all of the previous data? TheGuyWithAShortName 647 — 6y
Just update it like you regularly would with table[key], and update over the datastore. Unclear 1776 — 6y