Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MigrateCmd = &cobra.Command{ Use: "migrate", Short: "Migrate the database", RunE: func(_ *cobra.Command, _ []string) error { config, err := LoadConfig() if err != nil { return err } postgres := pgx.Postgres{} driver, err := postgres.Open(config.PostgresConn) if err != nil { return err } defer driver.Close() return storage.EnsureMigrationsDone(driver, "boilerplate") }, } )
View Source
var Version = "0.0.1"
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.