commands

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDownCmd

func InitDownCmd(config *MigratorConfig) *cobra.Command

func InitDropCmd

func InitDropCmd(config *MigratorConfig) *cobra.Command

func InitForceCmd

func InitForceCmd(config *MigratorConfig) *cobra.Command

func InitInfoCmd

func InitInfoCmd(config *MigratorConfig) *cobra.Command

func InitMigrateCmd

func InitMigrateCmd() *cobra.Command

func InitRootCmd

func InitRootCmd() *cobra.Command

func InitUpCmd

func InitUpCmd(config *MigratorConfig) *cobra.Command

Types

type MigratorConfig

type MigratorConfig struct {
	CreateService func() *migrationService.Service
	Provider      *string
	ConnStr       *string
	LogQueries    *bool
	Version       *string
	Steps         *int
}

MigratorConfig holds configuration for creating migration services

func (*MigratorConfig) CreateMigrationService

func (c *MigratorConfig) CreateMigrationService(logger *slog.Logger) (*migrationService.Service, error)

CreateMigrationService creates a migration service using current configuration

Jump to

Keyboard shortcuts

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