0
Interacting with a PostgreSQL database or any other database directly increases the amount of SQL you write. This can introduce security issues such as SQL injection attacks and limits the portability of your database. It’s advisable to use an ORM (Object Relation Mapper) like Prisma that provides an abstraction layer on top of your database.