migrateconfig

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailableDatabases

func GetAvailableDatabases(workingDir string) (map[string]string, error)

GetAvailableDatabases reads the .local-migrate-config.yml file and returns a list of available databases that are not in the test group

func ToPascalCase

func ToPascalCase(s string) string

ToPascalCase converts a snake_case string to PascalCase Examples:

  • general -> General
  • user_preferences -> UserPreferences
  • games_core -> GamesCore

Types

type DBConfig

type DBConfig struct {
	Group      string         `yaml:"group"`
	Folder     string         `yaml:"folder"`
	Connection map[string]any `yaml:"connection"`
}

type MigrateConfig

type MigrateConfig struct {
	Migrations Migrations `yaml:"migrations"`
}

type Migrations

type Migrations struct {
	BasePath  string              `yaml:"base_path"`
	Databases map[string]DBConfig `yaml:"databases"`
}

Jump to

Keyboard shortcuts

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