migrations

package
v0.0.0-...-ee3d319 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Limit    int
	Target   int
	Workers  int
	DryRun   bool
	IDs      []string
	Period   time.Duration
	Database string
	Session  db.Session
}

func (Options) Application

func (opts Options) Application(env anser.Environment, evgEnv evergreen.Environment) (*anser.Application, error)

Application is where the migrations are registered and defined, before being handed off to another calling environment for execution. See the anser documentation and the anser/example_test.go for an example.

func (Options) Setup

func (opts Options) Setup(ctx context.Context) (anser.Environment, error)

Setup configures the migration environment, configuring the backing queue and a database session.

Jump to

Keyboard shortcuts

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