Concept Flow - Why ORM maps Python to database
Define Python class
ORM reads class
Create database table
Create Python object instance
ORM converts object to SQL INSERT
Data saved in database
Query database with ORM
ORM converts SQL result to Python objects
This flow shows how ORM takes Python classes and objects, turns them into database tables and rows, and back again, so you work only in Python.