EDIT: As posted in a reply,
This is a very simple server I made in node-js which gives a roblox script access to storing, getting and deleting information. I made this to be hosted on glitch, since most people do not have access to their own VPS. All tables are key/value like datastores, however unlike datastores you can easily write specific information, without messing up any other information. Such as a table for users, you can get all users, or a specific user and you can also write to a specific user without messing with all other users.
The source code for both the server and roblox code is in my github repo as well as how to setup everything on Glitch and in roblox.
I’m only going to go over the actual roblox code’s api however it is all documented on the github page.
The roblox script is a module and can be required after being put into a ModuleScript in your game.
Examples for all code can be found here, because discourse’s formatting isn’t the best for code.
sql:GetAsync(string Table, string Key, function Callback)
Read information from a table inside of your database.
Example
sql:PostAsync(string Table, string Key, string Value [, function Callback])
Write information to a specific table inside of your database.
Example
sql:DeleteAsync(string Table, string Key [, function Callback])
Delete information from a specific table inside of your database.
Example
I apologize in advance if I’m not that good at explaining things.
If you have any criticism, issues or complaints about any of my code, please feel free to tell me and I’ll try and solve the issue.