How an ORM works: from an object to SQL and back
How an ORM works: from an object to SQL and back
You write objects. The ORM writes the SQL.
Ask for user 2 and it sends a SELECT. The row that comes back gets poured into a User object. Change the name and it sends an UPDATE for that one field.
Save this for the next time someone asks what an ORM is for.
#orm #sql #database #backend #coding #programming