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 writing indecipherable database code...
- 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, we now have something called Sandbank Server, which is an online service that lets you sync data across multiple servers, or run serverside logic from anywhere. This is currently available at zero cost for those with regular bandwidth/storage requirements. If this is something you'd be interested in, please get in touch with me on Discord (anthonysharpy)!
If you like this project, star the repo on GitHub! It makes me look more important than I actually am.
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.