Skip to content

PostgresSQL Migrations in Golang with The PGX Driver and Toolkit.

License

Notifications You must be signed in to change notification settings

samverrall/pgxmigrations

Repository files navigation

Go Reference GitHub License GitHub Release

pgmigrations - PostgresSQL Migrations in Go with The PGX Driver and Toolkit

Example Usage

func main () {
	ctx := context.Background()

	conn, err := pgx.Connect(ctx, postgresConnectionURL)
	if err != nil {
		log.Fatal("failed to connect to postgres", err)
	}

	migrator := pgxmigrations.NewMigrator("/path/to/migrations", conn, pgxmigrations.WithLogging(true))
	if err := migrator.Migrate(ctx); err != nil {
		log.Fatal("failed to migrate postgres migrations", err)
	}
}

Install

go get -u github.com/samverrall/pgxmigrations@latest

⚠️ Pre-release Notice ⚠️

Important: This package is currently in pre-release and is not recommended for production use.

What does "pre-release" mean?

This software is still in the early stages of development. While I strive to provide a stable and functional experience, there may be bugs, incomplete features, or breaking changes in future releases.

Why use a pre-release version?

  • Early Testing: Get a glimpse of the upcoming features and improvements.
  • Community Feedback: I encourage users to provide feedback, report issues, and contribute to make this package better.

How to Contribute

We welcome contributions from the community. If you encounter issues or have suggestions, please open an issue or submit a pull request.

About

PostgresSQL Migrations in Golang with The PGX Driver and Toolkit.

Resources

License

Stars

Watchers

Forks

Packages

No packages published