9

Interacting with PostgreSQL Using Prisma ORM

In the previous chapter, we delved into the world of persistent storage, focusing on the implementation and management of databases within Docker containers. We learned how to set up PostgreSQL in Docker, construct a robust database schema for a chat application, and perform essential CRUD operations directly with SQL. This knowledge is pivotal in ensuring data persistence and integrity, critical for maintaining user information and messages across server restarts in dynamic applications.

This chapter shifts our focus toward streamlining database interactions and migrations in web development. We introduce object-relational mapping (ORM) as a powerful tool to abstract and simplify database operations, ...

Get Full-Stack Web Development with TypeScript 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.