migrate

package
v2.41.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyResult

type ApplyResult commands.MigrateApplyResult

type MigrationDirection

type MigrationDirection string
const MigrationDirectionDown MigrationDirection = "down"
const MigrationDirectionUp MigrationDirection = "up"

type ProjectMigrate

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

func NewProjectMigrate

func NewProjectMigrate(projectDirectory string, opts ...ProjectMigrateOption) (*ProjectMigrate, error)

func (*ProjectMigrate) Apply

func (*ProjectMigrate) Delete added in v2.17.0

func (*ProjectMigrate) StatusJSON

func (p *ProjectMigrate) StatusJSON(opts ...ProjectMigrationStatusOption) (io.Reader, error)

type ProjectMigrateOption

type ProjectMigrateOption func(*ProjectMigrate)

func WithAdminSecret

func WithAdminSecret(adminSecret string) ProjectMigrateOption

func WithEndpoint

func WithEndpoint(endpoint string) ProjectMigrateOption

type ProjectMigrationApplierOption

type ProjectMigrationApplierOption func(applier *projectMigrationsApplier)

func ApplyOnAllDatabases

func ApplyOnAllDatabases() ProjectMigrationApplierOption

func ApplyOnDatabaseName

func ApplyOnDatabaseName(databaseName string) ProjectMigrationApplierOption

func ApplyVersion

func ApplyVersion(version string, direction MigrationDirection) ProjectMigrationApplierOption

func ApplyWithSkipExecution added in v2.6.0

func ApplyWithSkipExecution() ProjectMigrationApplierOption

type ProjectMigrationDeleterOption added in v2.17.0

type ProjectMigrationDeleterOption func(deleter *projectMigrationsDeleter)

func DeleteAllMigrations added in v2.17.0

func DeleteAllMigrations() ProjectMigrationDeleterOption

func DeleteOnAllDatabases added in v2.17.0

func DeleteOnAllDatabases() ProjectMigrationDeleterOption

func DeleteOnDatabase added in v2.17.0

func DeleteOnDatabase(databaseName string, databaseKind hasura.SourceKind) ProjectMigrationDeleterOption

func DeleteOnlyOnServer added in v2.17.0

func DeleteOnlyOnServer() ProjectMigrationDeleterOption

func DeleteVersion added in v2.17.0

func DeleteVersion(version uint64) ProjectMigrationDeleterOption

type ProjectMigrationStatusOption

type ProjectMigrationStatusOption func(applier *projectMigrationsStatus)

func StatusAllDatabases

func StatusAllDatabases() ProjectMigrationStatusOption

Jump to

Keyboard shortcuts

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