What is ORM ? - nairuzabulhul/Technical-Terms GitHub Wiki
ORM stands Object Relational Mapping
It is a technique for querying and manipulating data from the database. The mapping technique acts as a bridge between objects of classes and database tables.
Example from StackOverFlow:
So let's say you have this object.
class Employee:
def __init__( self, name ):
self.__name = name
def getName( self ):
return self.__name
and the table:
create table employee(
name varcar(10),
)
Using an ORM framework would allow you to map that object with a db record automatically and write something like:
emp = Employee("Ryan")
orm.save( emp )
And have the employee inserted into the DB.