Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 663 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 663 Bytes

my_little_orm

Example of using:

from models import Model, Field, init_database

class Person(Model):
    name = Field()
    surname = Field()

db = init_database("sqlite:///foo.db")
p = Person(name='almaz', surname="galiev")
p.save()
db.commit()
p = Person.manager().get(p.id)
persons = Person.manager().all()
p.delete()
db.commit()

TODO

  • Implement models declaration layer (1h) [1h]
  • Implement database management layer (1h) [1h]
  • Implement layers of connection to databases and expression building (4h) [5h]
  • Write Tests (2h) [3h]
  • Add Postresql support (3h) [3h]
  • Increase coverage to 85 percent (2h)