Vaniog / lazymigrate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lazymigrate

logo

Terminal ui for managing migrations based on golang-migrate

demo

Configuration

Now lazymigrate supports PostgreSQL, MySQL and sqlite

lazymigrate can guess connection string if you have specific fields in .env file

examples

Also it parses env variables from .lazymigrate file

You can set up config directly with variables:

LAZYMIGRATE_URL=postgres://root:root@localhost:5432/root?sslmode=disable
LAZYMIGRATE_SOURCE=migrations

Install

Releases

Or

go install github.com/Vaniog/lazymigrate

Examples

Naming based on docker images envs naming

Postgres

POSTGRES_USER=root
POSTGRES_PASSWORD=root
POSTGRES_HOST=localhost
POSTGRES_DB=root
POSTGRES_PORT=5432

MySQL

MYSQL_USER=root
MYSQL_PASSWORD=root
MYSQL_HOST=localhost
MYSQL_DATABASE=root
MYSQL_PORT=3306

Sqlite

SQLITE_DB=app.db

About


Languages

Language:Go 99.7%Language:Makefile 0.3%