DBUModule | Datastore Manager

DBUModule | NEW

Intro: DBUModule, a simple, lightweight database module used for all sorts of databases!

Why DBUM?: DBUModule is a lightweight database module that is logical, easy, and very powerful. DBUM, often referred to as “Database Utility Module”, is designed for heavy usage and easy code returning.

How does it work?: DBUModule can do a lot of cool things! Here is a code example:

local DBUModule = require(game.ServerScriptService.DBUModule)

DBUModule:WriteCustomFunc("printPlayerName", function(Player: Player)
	print(Player.Name)
end)

game.Players.PlayerAdded:Connect(function(Player: Player)
	DBUModule:LoadProfile(Player):connect(function()
		print("Loaded "..Player.Name.."'s profile!")
	end)
	
	DBUModule:CreateLeaderstats(Player, {
		["Coins"] = "SessionData" -- Makes Coins with session data (current value!)
	})
	
	DBUModule:UseCusFunc("printPlayerName", {Player})
end)

game.Players.PlayerRemoving:Connect(function(Player: Player)
	DBUModule:SaveProfile(Player):connect(function()
		print("Saved "..Player.Name.."'s profile!")
	end)
end)

GET MODULE HERE: Module

5 Likes

There are over 20 Datastore Modules, and not a single one is needed. Also, I’ve checked your code, and it’s coded very messily and unoptimized.

Why would we use this over something like Suphi’s Datastore Module? Also there is no documentation.

Can I may ask you why do you use a Datastore Module?

1 Like

So I don’t have to worry about scripting all of these things.
image

1 Like

All of these things can be done in under 150 lines of code

Anyone can fit a script on 1 line, but it wont be easy to work with.

I got my own methods to load and store data and its very easy to work with

Whatever works for you ig.​​​​​​​​​​​​​​​​​

However you like it, but in my opinion using Datastore Modules is just bad.

How can it be bad to use a datastore module?

1 Like

I think Datastore modules are nice

I do not use Datastore modules

Also, I don’t understand people crapping on people’s modules when they offer them for free. If you don’t like the module, don’t use it, but be grateful someone was willing to share their work to the world

Leave constructive criticism instead

2 Likes

Because you won’t learn anything from using Datastore Modules. As I said if you prefer using these modules its your choice.

Why are people still creating Datastore Modules if there are already tons of them also I left constructive criticism:

Also, I’ve checked your code, and it’s coded very messily and unoptimized.

You don’t need to learn about every module you use, it’s just unnecessary, if you are interested in the module then you can just look thru the scripts and learn about them.

Because maybe they made a better module? (not in this case)

I would call that harsh criticism

Yeah, not denying that

It can be someone’s scripting project they made and decided to share, there is nothing wrong with that even if there are a lot of better alternatives
If the person wants to make a module to get people to use it, then they should consider all of the other modules, and who cares really… It doesn’t hurt anyone

I made my own signal library mainly to understand the whole :Wait() dynamic using coroutines. I probably wont share it because there are many other signal libraries and mine will just be compared to them

Personally I agree with 000, I made my personal data store systems even if I didn’t know how to make them, (I’m sure I have a lot to learn about DataStore), but if a person constantly looks for other people’s things, that person won’t learn anything, cause even if DataStore are mainly for saving data, a person needs to know tips and tricks to build them, so using Modules is like taking pre made scripts from YouTube…

1 Like

Doing stuff yourself is a great learning experience, but I wouldn’t say using modules is like taking pre made scripts from YouTube.

Especially for datastores, it is very important to make it right as to avoid data loss. I think datastore modules have a great value to people who either don’t feel confident in their skill to work with datastores or don’t want to spend a lot of time scripting all that stuff when there are datastore modules they can take, for free, that do the job perfectly and are thoroughly tested

As I’ve said twice already, it’s your choice if you prefer using such modules. However, it’s not “unnecessary” if you work directly with Roblox Lua, you’ll become better and learn more things. But if you rely on such modules, you’ll remain as dumb as you were before.

There isn’t anything you could do “better”, you can only code it in a different way. For example, ProfileService was released some years ago and covers everything from server shutdowns to loading/saving, session locking, retries, reconciliation, auto-saving, etc. And, every other module covers the same things. Look at the module you mentioned “Suphi’s Datastore Module” it has the same functionality.

1 Like

Just because you use a module so that you don’t have to reinvent the wheel doesn’t mean you’ll stay dumb.

Suphi’s Datastore Module does not function in the same way as ProfileService, look at some of Suphi’s videos to see the differences between the two.