Skip to content

almazgalievisl/my_little_orm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published