handler

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dml                    = "dml"
	PartitionedDml         = "pdml"
	FlagNameDml            = Dml
	FlagNamePartitionedDml = PartitionedDml
	FlagNameProjectId      = "p"
	FlagNameInstanceName   = "i"
	FlagNameDatabaseName   = "d"
)

Variables

This section is empty.

Functions

func ExecInit

func ExecInit(ctx context.Context, adminClient *database.DatabaseAdminClient, dataClient *spanner.Client, targetDb string) error

func ExecRun

func ExecRun(ctx context.Context, adminClient *database.DatabaseAdminClient, dataClient *spanner.Client, targetDb string, migrations []Migration) error

func ExecRunWithFiles added in v1.0.7

func ExecRunWithFiles(ctx context.Context, adminClient *database.DatabaseAdminClient, dataClient *spanner.Client, targetDb string, migrationFilePaths []string) error

func Init

func Init(c *cli.Context) error

func New

func New(c *cli.Context) error

func Run

func Run(c *cli.Context) error

Types

type Migration added in v1.0.7

type Migration struct {
	Id      string
	Content []byte
}

Jump to

Keyboard shortcuts

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