I believe that all programmers worth their salt, know of the famous quote that Larry Wall published, the three virtues of a programmer is: Laziness Impatience, & Hubris With this in mind, I would like to share with you a database class I have drafted over the recent years. To give you some context, the reason I wrote this originally was because, a) I am too lazy to put the entire database schema in to a framework's model, and b) I was tasked to put together an enterprise system which many database systems with enormous models had to interact with each other. First, what is an ORM? Object-Relational Mapping ; is a technique to wrap your database queries ( CRUD ) from your object-orientated frameworks. I'm going to go in to a fair bit of detail about the one I have written. The Premise Database schemas are written in to the tables, the same way as you store anything else. Therefore every way a table is structured can be queried and extrapolated. Typical...