migrate-gen

command
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Command migrate-gen generates SQL migration files for event sourcing.

Usage:

go run github.com/getpup/pupsourcing/cmd/migrate-gen -output migrations -filename init.sql

Or with go generate:

//go:generate go run github.com/getpup/pupsourcing/cmd/migrate-gen -output migrations

Generate migrations for different database adapters:

go run github.com/getpup/pupsourcing/cmd/migrate-gen -adapter postgres -output migrations
go run github.com/getpup/pupsourcing/cmd/migrate-gen -adapter mysql -output migrations
go run github.com/getpup/pupsourcing/cmd/migrate-gen -adapter sqlite -output migrations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL