crud operation with database using json.
Project description
DBjson
crud operation with database using json.
Features
- create data.
- read data.
- delete data
- update data
- search data
Install
pip install dbjsonpy
Example
minimal example
from dbjson import DBjson, Base
from sqlalchemy import String
class User(Base):
name = Column(String)
db = DBjson('sqlite:///test.db')
# insert data
add_data = {"name": "Jak","city": "india"}
print(db.add(User, add_data))
# read all data
print(db.getall(User))
see example here
Todo
- update data
- add multiple data
- search data
- paginate data
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dbjsonpy-1.0.4.tar.gz
(3.9 kB
view hashes)