Search⌘ K
AI Features

A Repository Based on PostgreSQL

Explore how to build a repository using PostgreSQL and SQLAlchemy within Python applications following clean architecture principles. Learn why mocking ORMs can be problematic and how to implement integration tests for database interactions, optimizing the test process while maintaining robust system design.

We'll cover the following...

Overview

Let’s start with a repository based on the popular SQL database PostgreSQL. It can be accessed from Python in many ways, but one of the best ways is through the SQLAlchemy interface. SQLAlchemy is an ...