pgtestdb

quickly run tests in their own temporary, isolated, postgres databases (by peterldowns)

Pgtestdb Alternatives

Similar projects and alternatives to pgtestdb

  1. Django

    536 pgtestdb VS Django

    The Web framework for perfectionists with deadlines.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. just

    207 pgtestdb VS just

    🤖 Just a command runner

  4. gobyexample

    Go by Example

  5. chezmoi

    Manage your dotfiles across multiple diverse machines, securely.

  6. testcontainers-node

    Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

  7. pglite

    33 pgtestdb VS pglite

    Embeddable Postgres with real-time, reactive bindings.

  8. skeema

    Declarative pure-SQL schema management for MySQL and MariaDB

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. gotests

    Automatically generate Go test boilerplate from your source code.

  11. cowblock

    Block-level copy-on-write tool

  12. dotfiles

    My dotfiles, managed with https://chezmoi.io. (by twpayne)

  13. testy

    typesafe (generics) helpers for better golang tests

  14. Txtar

    1 pgtestdb VS Txtar

    Swift implementation of a txtar parser and formatter.

  15. data-caterer

    Test data management tool for any data source, batch or real-time. Generate, validate and clean up data all in one tool.

  16. ephemeralpg

    Quickly spin up a temporary PostgreSQL test databases

  17. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better pgtestdb alternative or higher similarity.

pgtestdb discussion

Log in or Post with

pgtestdb reviews and mentions

Posts with mentions or reviews of pgtestdb. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-12-30.
  • Database mocks are just not worth it
    10 projects | news.ycombinator.com | 30 Dec 2024
    Here's what I've found — https://github.com/peterldowns/pgtestdb?tab=readme-ov-file#h...

    If you come up with any better options please let me know so I can update this readme!

  • Russ Cox: Go Testing by Example
    8 projects | news.ycombinator.com | 5 Dec 2023
    Agreed with most of this but I’m skeptical of the rsc.io/script dsl approach. I’ll try it, though, because Russ is often right.

    shameless advert: do you wish testify was implemented with generics and go-cmp, and had a more understandable surface area? Check out my small zero-dep library, Testy https://github.com/peterldowns/testy

    shameless advert: do you want to write tests against your postgres database, but each new test adds seconds to your test suite? Check out pgtestdb, the marginal cost of each test is measured in tens of milliseconds, and each test gets a unique and isolated postgres instance — with all your migrations applied. https://github.com/peterldowns/pgtestdb

  • Show HN: SQL Dry Runs with SQL Simulator
    2 projects | news.ycombinator.com | 4 Jun 2023
    Hi Weston, congratulations on launching. You've done a great job of explaining what the project is and how it works. I'm not in the ecosystem you've built this for so I can't comment too much on the project itself, but nice work communicating it.

    If anyone is interested in testing code/sql against postgres, I recently released https://github.com/peterldowns/pgtestdb. It uses template databases and advisory locks to give each test its own unique database with a near-zero marginal cost for each additional test. Combined with a ram/tmpfs-backed postgres server that is tuned for performance, it goes extremely fast.

    Currently just for golang but I'm planning on releasing equivalent-capability libraries for Python and Typescript over the next month. If anyone has any thoughts/comments/feedback/suggestions I'd be extremely thankful.

  • A note from our sponsor - SaaSHub
    www.saashub.com | 18 Jun 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic pgtestdb repo stats
3
326
6.2
24 days ago

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Go is
the 4th most popular programming language
based on number of references?