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
Click to show internal directories.
Click to hide internal directories.