Sandbank Database
by
anthonysharpy
| Summary | The fast, easy database. |
|---|---|
| Description |
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... • Advanced features such as automatic backups, save-on-change and file obfuscation... • No need to waste money paying for hosting... • No writing indecipherable database code... • No setup required! Example Tag your saveable data with [Saved] or [AutoSaved]... class MyPlayer : Component { [Saved] public string UID { get; set; } [AutoSaved, Sync] public float Health { get; set; } // [AutoSaved] automatically saves on change. [Saved, Sync] public string Name { get; set; } } Use it! myPlayer.Health = 100; myPlayer.Name = "Bob"; myPlayer.UID = "123456789"; // Using their Steam ID is a good choice for players! // Insert. Sandbank.Insert("players", myPlayer); // Fetch. var playerWith100Health = Sandbank.SelectOne<MyPlayer>("players", x => x.Health == 100); // Bob has rejoined. Fetch and inject their data. var previousData = Sandbank.SelectOneWithID<MyPlayer>("players", "123456789"); Sandbank.CopySavedData<MyPlayer>(previousData, rejoiningPlayer); // Delete. Sandbank.DeleteWithID<MyPlayer>("players", playerWith100Health.UID); Tell Me More Detailed instructions can be found here: https://github.com/anthonysharpy/sandbank 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.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...
• Advanced features such as automatic backups, save-on-change and file obfuscation...
• No need to waste money paying for hosting...
• No writing indecipherable database code...
• No setup required!
Example
Tag your saveable data with [Saved] or [AutoSaved]...
class MyPlayer : Component
{
[Saved] public string UID { get; set; }
[AutoSaved, Sync] public float Health { get; set; } // [AutoSaved] automatically saves on change.
[Saved, Sync] public string Name { get; set; }
}
Use it!
myPlayer.Health = 100;
myPlayer.Name = "Bob";
myPlayer.UID = "123456789"; // Using their Steam ID is a good choice for players!
// Insert.
Sandbank.Insert("players", myPlayer);
// Fetch.
var playerWith100Health = Sandbank.SelectOne<MyPlayer>("players", x => x.Health == 100);
// Bob has rejoined. Fetch and inject their data.
var previousData = Sandbank.SelectOneWithID<MyPlayer>("players", "123456789");
Sandbank.CopySavedData<MyPlayer>(previousData, rejoiningPlayer);
// Delete.
Sandbank.DeleteWithID<MyPlayer>("players", playerWith100Health.UID);
Tell Me More
Detailed instructions can be found here: https://github.com/anthonysharpy/sandbank
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.
|
| Votes | 👍11 👎0 ❤️8 |
| Error Rate | 0% |
| Reviews |
4 reviews
25% Recommended (1)
50% Promise (2)
25% Needs Work (1)
|
| Usage |
7 players
112 sessions
15 hours playtime
8 minutes avg session
Totals captured
|
| Data | {} |
| Version | Created | Size (modified) | Files | Changes |
|---|---|---|---|---|
| 82899 | 177.9 KB (137.2 KB) | 47 +27 ~7 -26 | 3.0.0 | |
| 82018 | 171.9 KB (95.3 KB) | 46 ~15 | 2.0.1 | |
| 81893 | 172.9 KB (146.1 KB) | 46 +5 ~20 -2 | 2.0.0 | |
| 77588 | 158.8 KB (25.9 KB) | 43 ~3 | 1.5.5 | |
| 76018 | 156.1 KB (13.6 KB) | 43 ~4 | 1.5.3 | |
| 75477 | 155.4 KB (3.8 KB) | 43 ~2 | 1.5.2 | |
| 75337 | 155 KB (12.8 KB) | 43 ~5 | 1.5.1 | |
| 75336 | 155.3 KB (45.8 KB) | 43 +4 ~5 | 1.5.0 | |
| 74558 | 141.2 KB (81.2 KB) | 39 +1 ~12 | 1.4.0 | |
| 72323 | 131.2 KB (116.8 KB) | 38 +1 ~23 | 1.3.1 | |
| 69268 | 122.2 KB (47.9 KB) | 37 +2 ~6 | 1.2.3 | |
| 68434 | 121.4 KB (101 KB) | 35 ~33 | 1.1.0 | |
| 61123 | 114.4 KB (37.1 KB) | 35 +3 ~3 | 1.0.2 | |
| 56680 | 102.8 KB (20.4 KB) | 32 +1 ~2 | 1.0.1 | |
| 56679 | 102.8 KB | 31 +31 | 1.0.0 |
Loading history…