tern
The SQL Fan's Migrator (by jackc)
migrations
SQL database migrations for Golang go-pg and PostgreSQL (by go-pg)
Our great sponsors
tern | migrations | |
---|---|---|
12 | 2 | |
770 | 306 | |
- | 1.0% | |
5.6 | 0.0 | |
20 days ago | 6 months ago | |
Go | Go | |
MIT License | BSD 2-clause "Simplified" 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.
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.
tern
Posts with mentions or reviews of tern.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-31.
-
database migrations
If you are using postgres and pgx you may want to use tern.
-
Database migration tool
Recently i started using turn its more fun (IMPO) compared to others tool available https://github.com/jackc/tern
-
How do you handle migrations ?
We use https://github.com/jackc/tern library (from the author of the pgx driver). We run migrations in k8s init containers and we do not do rollbacks (only up). Advantages over other popular solutions are:
-
what do you use for migrations? or how do you the sql tables and seeding?
I use tern! It’s the migrator tool written by the same author of pgx the de facto Postgres driver.
I’ve been happy with https://github.com/jackc/tern .
-
orms in go
I use tern for migrations. It’s from the same Author as pgx so everything in that ecosystem plays well.
- Is there a Go alternative to dbdeploy?
-
Does Go have a nice library for database migrations etc without necessarily being a full ORM?
I use https://github.com/jackc/tern + .env files which interpolate with its config for various environments.
-
What migration/versioning tool do you use?
Tern is a great language and framework agnostic solution for SQL migrations https://github.com/jackc/tern
- Most recommended database migration tool? using golang for the record
migrations
Posts with mentions or reviews of migrations.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-02-22.
-
Go Tools: For database schema migrations
github.com/go-pg/migrations: Package (Explicit SQL),
What are some alternatives?
When comparing tern and migrations you can also consider the following projects:
migrate - Database migrations. CLI and Golang library.
goose - A database migration tool. Supports SQL migrations and Go functions.
dbmate - :rocket: A lightweight, framework-agnostic database migration tool.
gobuffalo/pop - A Tasty Treat For All Your Database Needs
videos - Slides and examples used for my training videos
postgresql-migrations - Simple Schema Migrations for PostgreSQL
gen - Gen: Friendly & Safer GORM powered by Code Generation
retool - Retool: a better filter tool for Redump and No-Intro DAT files.
go-pg - Golang ORM with focus on PostgreSQL features and performance
SQLBoiler - Generate a Go ORM tailored to your database schema.