peanuts
A minimalist JSON based database for people who love peanuts :3 ( or not )
Warning
This database system is just a raw idea and prone to unexpected behaviour.
About
peanuts
is a JSON based database system using file-name approach to store user data with strict schema checking and CLI flexibility.
It uses simple SQL like syntax for querying and inserting data along-side a expressive CLI with helpful error messages in case you make a mistake while using the commands.
How is the data stored?
The project comes with a data
folder that stores all the data. The databases
sub-directory stores all the database related content.
For each database, a new directory is created under data/databases
with this structure
└── data/databases
└── database_name # name of the database
├── data # this is where data is stored
│ └── schema_name # schema related to the item
│ └── entry_id.pnuts.json # saved data with the unique ID
└── schemas # all schema structure are saved under this
└── schema_name.pnuts.json # json of a particular schema