Skip to content
immmdreza edited this page Jun 5, 2022 · 3 revisions

Simple Json Database

This is a simple database with a rich ORM that stores data as JSON objects.

Goals

  • Implement an ORM from python to JSON. With this you can easily map python objects to json and reverse.
  • Implement something Highly strong type and super type hinted.
  • Implement something async.
  • Implement a database that is highly queryable.
  • Implement a simple database that you can use everywhere.
  • Implement something user-friendly just like python itself.
async with engine.students.get_queryable() as students:
    async for student in (students
            .include(lambda s: s.grade_data)
            .where(lambda s: any(g.grade < 10 for g in s.grade_data))):
        engine.students.delete(student)

await engine.students.save_changes_async()
Clone this wiki locally