leafMigration

package module
v0.0.0-...-0829b1e Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 9 Imported by: 1

README

Leaf Migration

This directory contains utilities support for Leaf migration codegen.

Basic Usage

New

$ go run main.go new --types <mysql|mongo|postgre> --name <migration-name>

Migrate

$ go run main.go migrate [--types <mysql,mongo,postgre>] [--version <VERSION>] [--verbose] [--specific]

Rollback

$ go run main.go rollback --version <VERSION> [--types <mysql,mongo,postgre>] [--verbose] [--specific]

Check

$ go run main.go check [--types <mysql,mongo,postgre>] [--version <VERSION>]

Example

Project example can be found here.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	// contains filtered or unexported fields
}

func New

func New() *Cli

func (Cli) Run

func (c Cli) Run() *cli.App

func (*Cli) WithMongo

func (c *Cli) WithMongo(f func(conn leafNoSql.Mongo, log leafLogger.Logger) []migration.Migration) *Cli

func (*Cli) WithMySql

func (c *Cli) WithMySql(f func(conn leafSql.ORM, log leafLogger.Logger) []migration.Migration) *Cli

func (*Cli) WithPostgre

func (c *Cli) WithPostgre(f func(conn leafSql.ORM, log leafLogger.Logger) []migration.Migration) *Cli

Jump to

Keyboard shortcuts

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