migration

package
v0.0.0-...-d5bc497 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 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