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 ¶
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
}
Click to show internal directories.
Click to hide internal directories.