I am going to implement a ORM in Python3. This work requires a lot of knowledge in magic methods of Python, known as MetaProgramming.
ORM means Object-relational mapping, for whom has interest, please consult the Wikipedia.
In a few words, ORM try to mapping Relational model to Object-oriented model. There are some rules:
- One table maps to One class
- Row in table maps to instance of class
- Columns in table map to attributes type of class
Yes, quite a lot.
- SQLAlchemy
- Django ORM
- peewee
- ...
Well, I want to do some cool things in Python, and share whole learning progress to others. So, I think ORM is a good choice and I could eat myself's dog foot.