migrate

package
v0.0.0-...-e8a8f99 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package migrate support by golang-migrate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMigration

func BuildMigration() (*migrate.Migrate, error)

BuildMigration returns *migrate.Migrate if everything is ok. otherwise return specified error.

func Drop

func Drop(m *migrate.Migrate)

Drop deletes everything in the database.

func Up

func Up(m *migrate.Migrate)

Up execute up migrations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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