pg-mem is an in-memory PostgreSQL emulator for Node.js and TypeScript that allows you to simulate a Postgres database without a real server. It’s perfect for unit testing and development scenarios where spinning up a full database would be too heavy. pg-mem supports many Postgres features and is compatible with various ORMs like TypeORM and Sequelize.

Features

  • In-memory emulation of PostgreSQL behavior
  • Works with TypeORM, Sequelize, and pg driver
  • Supports most PostgreSQL SQL syntax and features
  • Ideal for fast, isolated unit testing
  • No external dependencies or database server needed
  • Supports schemas, relations, and transactions

Project Samples

Project Activity

See All Activity >

Categories

Database

License

MIT License

Follow pg-mem

pg-mem Web Site

Other Useful Business Software
Resco toolkit for building mobile apps Icon
Resco toolkit for building mobile apps

A no-code toolkit for building responsive and resilient mobile business applications for Microsoft Power Platform, Dynamics 365, Dataverse and Salesfo

Deploying mobile apps with Resco takes days, not months—all without writing a single line of code. Workers can download the Resco app from AppStore, Google Play, or Windows Store, log into your company environment, and instantly use the app you have published on any device.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pg-mem!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

TypeScript

Related Categories

TypeScript Database Software

Registered

2025-06-05