cmd

package
v1.19.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetSeed    = "seed"
	TargetMigrate = "migrate"
)
View Source
const DefaultConfigFile = ".elementalrc"

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "elemental",
	Short: "Your next gen MongoDB ODM",
	Long:  `Elemental is a user database ODM that allows you to interact with your database in a much more user friendly way than standard database drivers`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println(`

Welcome to Elemental!.

------------------------------------		

Please run 'elemental --help' to see available commands.

If you encounter any issues, please report them at "https://github.com/go-elemental/elemental/issues"

------------------------------------`)
	},
}

Functions

func Execute

func Execute()

Types

type Config added in v1.8.2

type Config struct {
	ConnectionStr       string `json:"connection_str" yaml:"connection_str"`             // The connection string to connect with the data source
	MigrationsDir       string `json:"migrations_dir" yaml:"migrations_dir"`             // The directory where migration files are stored
	SeedsDir            string `json:"seeds_dir" yaml:"seeds_dir"`                       // The directory where seed files are stored
	ChangelogCollection string `json:"changelog_collection" yaml:"changelog_collection"` // The collection where changelogs are stored in the database
}

Jump to

Keyboard shortcuts

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