Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "migrate", Run: func(cmd *cobra.Command, args []string) { path, _ := cmd.Flags().GetString("conf") cfg, err := conf.Load(path) if err != nil { panic(err) } client, err := data.NewEntClient(cfg) if err != nil { panic(err) } defer func(client *ent.Client) { err := client.Close() if err != nil { fmt.Println(err) } }(client) if err := client.Debug().Schema.Create(context.Background()); err != nil { log.Fatalf("failed creating schema resources: %v", err) } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.