Home
A Revamped version of PysonDB. New Schema and super fast.
The new DB schema
{
"version": 2,
"keys" ["a", "b", "c"],
"data": {
"384753047545745": {
"a": 1,
"b": "something",
"c": true
}
}
}
Features
- Much better than PysonDB-V1
- Lightweight JSON based database.
- Supports CRUD commands.
- No Database drivers required.
- Unique ID assigned for each JSON document added.
- Strict about Schema of data added.
- Inbuilt CLI to delete,display,create JSON database.
| from pysondb import PysonDB
db = PysonDB('test.json')
db.add({
'name': 'adwaith',
'age': 4,
'knows_python': True
})
print(db.get_all())
{'231541323453553701': {'name': 'adwaith', 'age': 4, 'knows_python': True}}
|