Sandbox Logo

Sandbank Database

The fast, easy database for s&box! Store any kind of data you want. Load and save in a single line of code.
Faster than a conventional SQL database for 99% of use cases...
Perform any type of query or lookup...
No need to waste money paying for hosting...
No setup required!

Example

Tag your saveable data...
class PlayerData : Component
{
	[Saved] public string UID { get; set; }
	[Saved, Sync] public float Health { get; set; }
	[Saved, Sync] public string Name { get; set; }
}
Use it!
_myPlayerData.Health = 100;
_myPlayerData.Name = "Bob";

// Insert.
Sandbank.Insert("players", _myPlayerData);

// Fetch.
var playerWith100Health = Sandbank.SelectOne<PlayerData>("players", x => x.Health == 100);

// Delete.
Sandbank.DeleteWithID<PlayerData>("players", playerWith100Health.UID);

Tell Me More

Sandbank is a local data store and doesn't upload anything to the internet. However the project is now in a position where we can offer an online service that lets you sync data across multiple servers. This would likely be available at zero cost for those with low bandwidth/storage requirements. If this is something you'd be interested in, please get in touch with me on Discord (anthonysharpy). 

If you're making a game that involves saving stuff, give this a try and let me know which parts of it suck and which parts don't suck. That way I can actually make it useful for people to use 👍

Detailed instructions can be found here: https://github.com/anthonysharpy/sandbank

Licence

The library is free for personal and commercial use. By continuing to use the software you agree to the licence included with the code.

Sandbank Database

The fast, easy database.

Created
5/10/2024
Updated
9/8/2024
In Collections
Referenced By
Dependencies
Reviews
🥇 x 1🙂 x 1