skeema VS postgres_migrator

Compare skeema vs postgres_migrator and see what are their differences.

postgres_migrator

A postgres migration generator and runner that uses raw declarative sql. (by blainehansen)
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
featured
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
skeema postgres_migrator
9 8
1,332 112
0.9% 5.4%
8.6 6.4
5 days ago about 2 months ago
Go Rust
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

skeema

Posts with mentions or reviews of skeema. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-03.
  • Declarative Schemas for Simpler Database Management
    10 projects | news.ycombinator.com | 3 Apr 2025
    The article isn't claiming to have invented declarative schema management though. They're just saying it is now available as a feature in Supabase. (Personally I think that's great!)

    Regarding prior art: Django migrations are indeed declarative, and were very early in this space. But they're tied to Python model definitions in the ORM, which is a bit more of a special-case than the native SQL CREATE based approach described here.

    As for Prisma Migrate, they directly copied several innovations from my tool Skeema [1] which has been available since 2016, so they can be equally accused of "reinventing" things :)

    Not that I invented pure-SQL declarative schema management either, by any stretch. I was largely inspired by the workflow at Facebook, who adopted declarative table management company-wide back in ~2012 or so.

    [1] https://github.com/skeema/skeema

  • Ask HN: Are there any CLI only tools that are monetised
    4 projects | news.ycombinator.com | 4 Feb 2025
    Yes, this is a possible business model for developer tools. My declarative schema management product Skeema is primarily a CLI tool, available in both FOSS [1] and paid editions, with the latter adding extra functionality and optional premium support [2].

    In my space, some larger competitors are more focused on SaaS/cloud offerings. But that can be a mixed bag for security-sensitive customers who prefer to self-host, as well as for folks who want to integrate a tool into an automation/CI/CD pipeline. CLI tools are more compelling in those situations.

    [1] https://github.com/skeema/skeema/

    [2] https://www.skeema.io/download/

  • Features I wish PostgreSQL had as a developer
    1 project | news.ycombinator.com | 5 Apr 2024
    If a tool blindly drops columns, that's just a bad tool! It doesn't mean the concept is flawed.

    Thousands of companies successfully use declarative schema management. Google and Facebook are two examples at a large scale, but it's equally beneficial at smaller scales too. As long as the workflow has sufficient guardrails, it's safe and it speeds up development time.

    Some companies use it to auto-generate migrations (which are then reviewed/edited), while others use a fully declarative flow (no "migrations", but automated guardrails and human review).

    I'm the author of Skeema (https://github.com/skeema/skeema) which has provided declarative flow for MySQL and MariaDB since 2016. Hundreds of companies use it, including GitHub, SendGrid, Cash App, Wix, Etsy, and many others you have likely heard of. Safety is the primary consideration throughout all of Skeema's design: https://www.skeema.io/docs/features/safety/

    Meanwhile a few declarative solutions that support Postgres include sqldef, Migra, Tusker (which builds on Migra), and Atlas.

  • Ask HN: Startup Devs -What's your biggest pain while managing cloud deployments?
    6 projects | news.ycombinator.com | 27 Mar 2024
    I’d argue the obvious answer is address the lack of great answers for declarative schema migration in PostgreSQL. There is Skeema https://github.com/skeema/skeema but it doesn’t support Postgres and Prisma iirc forces you into an ORM, atlas looks perfect but has a nonstandard license.
  • How Meta Built the Infrastructure for Threads
    1 project | news.ycombinator.com | 8 Jan 2024
    Ahh I see now, you've founded https://github.com/skeema/skeema which is great!

    Keep it up!

  • Russ Cox: Go Testing by Example
    8 projects | news.ycombinator.com | 5 Dec 2023
    Using tmpfs for MySQL/MariaDB's data directory helps tremendously. If you're using Docker natively on Linux, use `docker run --tmpfs /var/lib/mysql ...` and that'll do the trick. Only downside is each container restart is slightly slower due to having to re-init the database instance from scratch.

    Tuning the database server settings can help a lot too. You can add overrides to the very end of your `docker run` command-line, so that they get sent as command-line args to the database server. For example, use --skip-performance-schema to avoid the overhead of performance_schema if you don't need it in your test/CI environment.

    For MySQL 8 in particular, I've found a few additional options help quite a lot: --skip-innodb-adaptive-hash-index --innodb-log-writer-threads=off --skip-log-bin

    A lot of other options may be workload-specific. My product Skeema [1] can optionally use ephemeral containerized databases [2] for testing DDL and linting database objects, so the workload is very DDL-heavy, which means the settings can be tuned pretty differently than a typical DML-based workload.

    [1] https://github.com/skeema/skeema/

    [2] https://www.skeema.io/docs/options/#workspace

  • Automagically generate migrations for GORM
    1 project | /r/golang | 29 Jun 2023
    Atlas hasn’t made it on my radar until now — surprising considering how many stars it has. Based on the description, it looks like it can do something similar to skeema except it isn’t limited to one flavor of sql like skeema. I’m looking forward to trying it out in my next postgres project.
  • Database character sets and collations explained – why utf8 is not UTF-8
    3 projects | news.ycombinator.com | 5 Jan 2022
    VARCHAR(N) can store N characters. So with utf8mb3, that's a max of 3N bytes worst-case. But with utf8mb4, it's now 4N bytes, which (with a high N) may exceed internal limits such as maximum length of an index key.

    IIRC, there were additional problems in older versions of MySQL, situations where sort buffers were sized to a fixed length equal to the value's worst-case size or something like that. So sorting a large number of utf8mb4 values would use a lot more memory than utf8mb3 values (again, iirc, I might be wrong on this).

    So the safer and more backwards-compatible approach was to introduce utf8mb4 as a new separate charset, and allow users to choose. MySQL 8 is now transitioning towards deprecating utf8mb3, and will finally make the utf8 alias point to utf8mb4 sometime in the near future.

    That said, there are still a bunch of unpleasant uses of utf8mb3 internally in things like information_schema. I develop schema management tooling and recently lost a week to some of the more obscure ones in https://github.com/skeema/skeema/commit/bf38edb :)

  • Are entity framework tools typically avoided with MySQL & Go and are there alternatives for migration script tooling that version control the entire schema like SSDT?
    2 projects | /r/golang | 16 Nov 2021
    I realize my paradigm on schema driven projects comes probably from my background. I found a very similar tool by chance when reading through my latest feeds and found this tool: https://github.com/skeema/skeema

postgres_migrator

Posts with mentions or reviews of postgres_migrator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-03.
  • Declarative Schemas for Simpler Database Management
    10 projects | news.ycombinator.com | 3 Apr 2025
    Hey, are you using some tool like the unmaintained migra https://github.com/djrobstep/migra (perhaps using this tool https://github.com/blainehansen/postgres_migrator) or pg-schema-diff https://github.com/stripe/pg-schema-diff or maybe this other unrelated pg-schema-diff https://github.com/zombodb/pg-schema-diff anything like it?

    Is it open source?

    I mean, I see you say

    > We then use a schema diff tool, like migra, to figure out the necessary updates to views and functions when generating the migration file.

    But "like migra" is very nonspecific. I guess you are not using migra itself

  • We built our customer data warehouse all on Postgres
    16 projects | news.ycombinator.com | 2 Feb 2024
    Thanks! Yeah definitely agree that building out declarative table management for Postgres would be a major effort. A few open source projects I've seen in that area include:

    https://github.com/sqldef/sqldef (Go)

    https://github.com/bikeshedder/tusker (Python but being ported to Rust)

    https://github.com/tyrchen/renovate (Rust)

    https://github.com/blainehansen/postgres_migrator (Rust)

    Some of these are based on parsing SQL, and others are based on running the CREATEs in a temporary location and introspecting the result.

    The schema export side can be especially tricky for Postgres, since it lacks a built-in equivalent to MySQL's SHOW CREATE TABLE. So most of these declarative pg tools shell out to pg_dump, or require the user to do so. But sqldef actually implements CREATE TABLE dumping in pure Golang if I recall correctly, which is pretty cool.

    There's also the question of implementing the table diff logic from scratch, vs shelling out to another tool or using a library. For the latter path, there's a nice blog post from Supabase about how they evaluated the various options: https://supabase.com/blog/supabase-cli#choosing-the-best-dif...

  • Pgroll: zero-downtime, undoable, schema migrations for Postgres
    15 projects | news.ycombinator.com | 3 Oct 2023
    Forr postgres, how does the schema diffing aspect compare to migra?

    https://github.com/djrobstep/migra

    I'm asking because, although migra is excellent and there are multiple migrations tools based on it (at least https://github.com/bikeshedder/tusker and https://github.com/blainehansen/postgres_migrator), issues are piling up but development seem to be slowing down

  • Diesel 2.1
    5 projects | /r/rust | 26 May 2023
    Is this similar to migra? There's a tool written in Rust that calls it, postgres_migrator (there's also tusker)
  • Ask HN: ORM or Native SQL?
    10 projects | news.ycombinator.com | 6 Jan 2023
    The best solution I've ever seen is this Rust library https://github.com/cornucopia-rs/cornucopia

    You write plain SQL for you schema (just a schema.sql is enough) and plain SQL functions for your queries. Then it generates Rust types and Rust functions from from that. If you don't use Rust, maybe there's a library like that for your favorite language.

    Optionally, pair it with https://github.com/bikeshedder/tusker or https://github.com/blainehansen/postgres_migrator (both are based off https://github.com/djrobstep/migra) to generate migrations by diffing your schema.sql files, and https://github.com/rust-db/refinery to perform those migrations.

    Now, if you have simple crud needs, you should probably use https://postgrest.org/en/stable/ and not an ORM. There are packages like https://www.npmjs.com/package/@supabase/postgrest-js (for JS / typescript) and probably for other languages too.

    If you insist on an ORM, the best of the bunch is prisma https://www.prisma.io/ - outside of the typescript/javascript ecosystem it has ports for some other languages (with varying degrees of completion), the one I know about is the Rust one https://prisma.brendonovich.dev/introduction

  • migrator: automatically generate postgres migrations from a declarative raw sql schema
    1 project | /r/PostgreSQL | 6 Mar 2022
  • migrator: automatically generate postgres migrations from a declarative raw sql schema, written in Rust
    1 project | /r/rust | 6 Mar 2022
  • Migrator: Automatically generate Postgres migrations from declarative SQL schema
    1 project | news.ycombinator.com | 6 Mar 2022

What are some alternatives?

When comparing skeema and postgres_migrator you can also consider the following projects:

atlas - Manage your database schema as code

pgroll - PostgreSQL zero-downtime migrations made easy

sql-migrate - SQL schema migration tool for Go.

quantumdb - Zero-downtime schema evolution for PostgreSQL

noms - The versioned, forkable, syncable database

cornucopia - Generate type-checked Rust from your PostgreSQL.

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
featured
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured

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