README ¶ migration PostgreSQL migration tool with transactions ./migration exec -url "postgres://postgres@localhost:5432/dbname?sslmode=disable" -dir ./fixtures -action up ./migration exec -url "postgres://postgres@localhost:5432/dbname?sslmode=disable" -dir ./fixtures -action down 2 ./migration exec -url "postgres://postgres@localhost:5432/dbname?sslmode=disable" -dir ./fixtures -action status Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Package migration execute database migration Index ¶ func Run(ctx context.Context, source, url, migrate string) (n int, executed []string, err error) func Status(ctx context.Context, source string, db *sqlx.DB) (int, []string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Run ¶ func Run(ctx context.Context, source, url, migrate string) (n int, executed []string, err error) Run parse and performs the required migration func Status ¶ func Status(ctx context.Context, source string, db *sqlx.DB) (int, []string, error) Status check db status Types ¶ This section is empty. Source Files ¶ View all Source files doc.go migration.go Directories ¶ Show internal Expand all Path Synopsis cmd Package cmd contains migration app commands Package cmd contains migration app commands migration Click to show internal directories. Click to hide internal directories.