Discover how PGPM brings npm-style modularity to Postgres.
2 Lessons · 8 minutes
6:00
Prerequisites
2:00
Spinning Up a Modular Database in 2 Minutes
5 Lessons · 22 minutes
3:00
pgpm Workspaces: A New Way to Organize Postgres Projects
4:00
Initializing a Workspace for Modular Postgres Development
5:00
Creating Your First Postgres Database Module
Testing Your Database Module
3 Lessons · 10 minutes
Adding Your First Database Change
Change Naming Conventions
Plan Files and Deployment Plans
9 Lessons · 58 minutes
8:00
Install Safegres and Audit a PGPM Workspace
Define PostgreSQL API Exposure in Safegres
Compare PostgreSQL API and Direct Role Risk with Safegres
7:00
Configure Safegres Presets and SQL Lint Rules
3 Lessons · 14 minutes
Lint PostgreSQL Migrations with pgsql-lint
Write a Custom PostgreSQL Lint Rule with @pgsql/lint
Run PostgreSQL Lint Checks in GitHub Actions
4 Lessons · 36 minutes
Spinning Up Temporary Testing Databases for Postgres
10:00
How to Test Row-Level Security (RLS) in Postgres
Advanced RLS Testing Scenarios - Simulating Many Users and Roles
Seeding Postgres Test Databases
7 Lessons · 53 minutes
1:00
Supabase Testing for the Modern Developer
Setting Up Local Supabase Database Testing
Writing Your First Supabase Test in TypeScript
Testing Row-Level Security Policies in Supabase
2 Lessons · 18 minutes
How to Setup Drizzle ORM for End-to-End Testing
Testing Row-Level Security with Drizzle ORM
How to Set Up PGlite for End-to-End Testing
Testing Row-Level Security and Extensions with PGlite
1 Lessons · 5 minutes
Common Issues and Solutions
5 Lessons · 19 minutes
Import a PostgreSQL Schema into a PGPM Module
Split PostgreSQL DDL into Atomic Statements with PGPM
Split a PGPM Migration by Column and Constraint
Split a PostgreSQL Schema into PGPM Packages