Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
/ piccolodb Public archive

Very simple embed nosql database to store and retrive data in JSON format

License

Notifications You must be signed in to change notification settings

erickzanardo/piccolodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

piccolodb

Very simple embed nosql database to store and retrive data in JSON format, it is built on top of google's Json library (gson). It's recommended for simple data storage and retrive.

Basic Features

Load the database

In PiccoloDB the database is a simple folder with files in it, so basically any folder can be used, here is an example of how load a database in a random selected folder:

String basePath = System.getProperty("java.io.tmpdir") + "TESTDB\\";
PiccoloDB db = new PiccoloDB();
db.load(basePath);

Save a Json

JsonObject o = new JsonObject();
o.addProperty("field1", "Bla");
//          Entity/Table Identifier
db.save(o, "entitytest", 1l);

Retrieve a Json

JsonObject jsonObject = db.get("entitytest", 1l);

List all jsons from an entity

List<JsonObject> result = db.listAll("entitytest");

More features comming out soon!

About

Very simple embed nosql database to store and retrive data in JSON format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages