Member-only story

What is an ORM and Why You Should be Using One

Jesse L
3 min readAug 20, 2021

--

Hi everyone, welcome back. What is an ORM? ORM stands for object-relational mapping. What does that mean? It is a technique used to convert data from databases, specifically relational databases, to a preferred language of your choice. For example, let’s assume a developer would like to retrieve a piece of data from their database. Normally, that developer would need to write an SQL query and call it to get those values from within the database. But with an ORM, the developer can simply call a function and pass in some parameters and the ORM handles everything data related and retrieves those values.

ORM

An ORM allows you to work with databases, without the need of using SQL. Everything can be done with the programming language itself, such as Java, C#, or Python, depending on which one your project is written in. There are various types of ORMs including Hibernate for Java, Doctrine for PHP, and TypeORM for TypeScript/JavaScript. Personally, I use TypeORM almost everyday at my day job and ever since learning it, it has been one of the greatest software tools I have ever used.

Each one of these ORMs may behave slightly different or may have some features that others may not have, but the overall idea is the same. These ORMs are libraries that can be imported just like any other third party library. But with any…

--

--

Jesse L
Jesse L

Written by Jesse L

Hi, I'm a passionate technology enthusiast and lifelong learner. Beyond my technical pursuits, I'm also passionate about sharing my enthusiasm with others.

No responses yet