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. ▲ 2
    pg-mem: in memory Postgres DB instance for unit tests
    story by saikatsg · 2025-05-15 · 0 comments
  2. Have you tried pg-mem for integration testing? https://github.com/oguimbal/pg-mem
  3. I've used pgmem https://github.com/oguimbal/pg-mem for the last couple of years for the same thing.
  4. …queries aren't supported. Curious about what others do for unit testing Postgres operations? https://github.com/oguimbal/pg-mem
  5. …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?
  6. 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?
  7. …is not the first time someone has gotten PG running in a browser though. Here's another approach: https://github.com/oguimbal/pg-mem
  8. ▲ 3
    Pg-mem: An in-memory re-implementation of PostgreSQL in JavaScript
    story by aazaa · 2021-08-27 · 1 comment
  9. …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
  10. 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?
  11. ▲ 2
    In-memory instance of Postgres for Node.js unit tests
    story by oguimbal · 2020-07-31 · 1 comment