Hacker GitHub

← All repos

oguimbal/pg-mem

View on GitHub ↗ ★ 2,378 TypeScript

An in memory postgres DB instance for your unit tests

11 mentions on Hacker News by 10 people: 3 stories, 8 comments · first 2020-07-31 · latest 2025-05-15

Mentions per year 11 mentions · busiest year 2021 (3)
20082026
  1. Have you tried pg-mem for integration testing? https://github.com/oguimbal/pg-mem
  2. I've used pgmem https://github.com/oguimbal/pg-mem for the last couple of years for the same thing.
  3. …queries aren't supported. Curious about what others do for unit testing Postgres operations? https://github.com/oguimbal/pg-mem
  4. …like pg-mem, which isn't returning stubbed results but isn't the Dockerized test DB either : https://github.com/oguimbal/pg-mem
    comment by timrichard · 2023-02-01 · in Ask HN: How do you test SQL?
  5. 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.
    comment by Ataraxy · 2023-02-01 · in Ask HN: How do you test SQL?
  6. …is not the first time someone has gotten PG running in a browser though. Here's another approach: https://github.com/oguimbal/pg-mem
  7. …way we just need a db to run but it will never really be written to. Or maybe just invest in this: https://github.com/oguimbal/pg-mem/issues/27 He has already put a lot of effort into it and I think with just a bit more support he can…
    comment by nahtnam · 2021-04-21 · in Prisma – ORM for Node.js and TypeScript
  8. A pure Javascript in memory emulation of Posgres, to help writing better node tests https://github.com/oguimbal/pg-mem
    comment by oguimbal · 2021-01-15 · in Ask HN: What are you working on?