Object Relational Mapping (ORM) is the bridge between databases and object-oriented programming. The ORM equips you with object-oriented tools to run commands that you would usually run on databases. It masks out the complicated intricacies of the databases and lets you manipulate them with your choice of programming language (must support object-oriented programming).
There is a wide range of ORMs in different object-oriented programing languages. Let’s consider the following MySQL query:
$value = SELECT * FROM collection WHERE day = 'Monday'
The above query retrieves a value from the table collection in which columns (day) are equal to Monday.
In an ORM, this query would look something like this:
value = collection.query(day = 'Monday')
Here is a list of ORM libraries in different object-oriented programming languages.
Free Resources