mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-28 18:15:30 +00:00
Adds `sql-migrate sync` which outputs a shell script that refreshes the local migrations.log from the DB by running _migrations.sql. Uses `|| true` so a fresh DB with no _migrations table yields an empty log (all migrations pending) rather than an error. Usage: sql-migrate -d ./db/migrations sync | sh sql-migrate -d ./db/migrations up | sh
golib
Sometimes a little copying, sometimes a little dependency. Too small for their own repos.
The default branch is dev, but the stable, versioned tags are based on main.
Also, my Go Cheatsheet:
Languages
Go
100%