What does HackerNews think of pg-mem?

An in memory postgres DB instance for your unit tests

Language: TypeScript

#125 in Hacktoberfest
#10 in Node.js
#37 in Node.js
#32 in PostgreSQL
#36 in TypeScript
Cool to see dev-ex improvements around local Postgres testing. At Graphite we use pg-mem for fast unit tests, but it's not ideal. It's extremely fast, but certain advanced queries aren't supported. Curious about what others do for unit testing Postgres operations?

https://github.com/oguimbal/pg-mem

I was wondering the other day how to classify tests that use a test double/fake like pg-mem, which isn't returning stubbed results but isn't the Dockerized test DB either :

https://github.com/oguimbal/pg-mem

So I'm not an expert, but for simplistic use cases I merely make use of https://github.com/oguimbal/pg-mem

It's a lot faster and easier than dealing with containers and the like.

Hats off to the engineers who pulled this off.

This is not the first time someone has gotten PG running in a browser though. Here's another approach:

https://github.com/oguimbal/pg-mem

A pure Javascript in memory emulation of Posgres, to help writing better node tests https://github.com/oguimbal/pg-mem