migrate

package
v1.0.0-beta.183 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

A very lightweigh migration tool to replace `ent.Schema.Create` calls.

Index

Constants

View Source
const (
	MigrationsTable = "schema_om"
)

Variables

View Source
var OMMigrations embed.FS

Functions

func SetMigrationTableName

func SetMigrationTableName(conn, tableName string) (string, error)

func Up

func Up(conn string) error

Types

type Migrate

type Migrate = migrate.Migrate

func NewMigrate

func NewMigrate(conn string, fs fs.FS, fsPath string) (*Migrate, error)

NewMigrate creates a new migrate instance.

Jump to

Keyboard shortcuts

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