👞 A simple SQL migration utility
.forgejo/workflows | ||
.gitignore | ||
cobble.go | ||
database.go | ||
go.mod | ||
go.sum | ||
LICENSE | ||
migrate_test.go | ||
migration.go | ||
migration_graph.go | ||
migration_test.go | ||
models.go | ||
parser.go | ||
README.md |
cobble
👞 A simple SQL migration utility
Installing
Through go
, the tool can be installed via:
go install forge.karnov.club/marc/cobble
Configuring
Connection details about the database to apply migrations on can be provided via environment variables:
DB_HOST=... # Database host
DB_PORT=... # Database port
DB_USER=... # Username to connect with when applying migrations
DB_PASSWORD=... # Password to use to connect as $DB_APP_USER
DB_NAME=... # Database name to apply migrations on