migration

package
v0.0.0-...-f58327f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2025 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoMigrate

func DoMigrate(sql *sql.DB, migrationPath string, migrateVersion uint) (err error)

DoMigrate does migration on provided database.

func MergeMigrationFiles

func MergeMigrationFiles(migrationPath string, mergedMigrationPath string) (err error)

MergeMigrationFiles merged the migration files with the previous state.

func SetDatabaseVersion

func SetDatabaseVersion(sql *sql.DB, migrationPath string, version uint) (err error)

SetDatabaseVersion sets the database version.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL