migrations

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SpannerMigrations = migrate.NewManager()

SpannerMigrations implements a migration manager for the Spanner datastore.

Functions

This section is empty.

Types

type SpannerMigrationDriver

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

SpannerMigrationDriver can migrate a Cloud Spanner instance The adminClient is required for DDL changes

func NewSpannerDriver

func NewSpannerDriver(database, credentialsFilePath, emulatorHost string) (SpannerMigrationDriver, error)

NewSpannerDriver returns a migration driver for the given Cloud Spanner instance

func (SpannerMigrationDriver) Close

func (smd SpannerMigrationDriver) Close() error

func (SpannerMigrationDriver) Version

func (smd SpannerMigrationDriver) Version(ctx context.Context) (string, error)

func (SpannerMigrationDriver) WriteVersion

func (smd SpannerMigrationDriver) WriteVersion(ctx context.Context, version, replaced string) error

Jump to

Keyboard shortcuts

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