builder

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Overview

Package builder provides a low level interface for defining un-versioned migrations based on a record transformation function

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Reversible(down versioning.MigrationFunc) Builder
	FilterKeys([]string) Builder
	Only([]string) Builder
	Build() (versioning.DatastoreMigration, error)
}

Builder is an interface for constructing migrations

func NewMigrationBuilder

func NewMigrationBuilder(up versioning.MigrationFunc) Builder

NewMigrationBuilder returns an interface that can be used to build a data base migration

Jump to

Keyboard shortcuts

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