O'Reilly logo

Learning Sinatra by Manoj Sehrawat, Sudeep Agarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Object Relationship Mapper

While discussing the project, we talked about Object Relationship Mapper (ORM). ORMs are libraries that act as a database wrapper for the programmer. It provides you with methods to communicate with the backend and can manage multiple types of data stores. So, in case we want to switch our data store, we will have to change just one line in the configuration part of the ORM and the rest of the code will remain the same.

This also makes the code cleaner and more readable and reliable. Though it makes the application a bit slower, the trade-off is worth it.

So, now that we know how our table structure will be, we have a better and clearer idea of what our application will be like. We will be discussing how to manage our ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required