MCPcopy Create free account
hub / github.com/riverqueue/river / Run

Method Run

cmd/river/rivercli/river_cli.go:705–717  ·  view source on GitHub ↗
(ctx context.Context, opts *validateOpts)

Source from the content-addressed store, hash-verified

703}
704
705func (c *validate) Run(ctx context.Context, opts *validateOpts) (bool, error) {
706 migrator, err := c.DriverProcurer.GetMigrator(&rivermigrate.Config{Line: opts.Line, Logger: c.Logger, Schema: c.Schema})
707 if err != nil {
708 return false, err
709 }
710
711 res, err := migrator.Validate(ctx, nil)
712 if err != nil {
713 return false, err
714 }
715
716 return res.OK, nil
717}
718
719type versionOpts struct {
720 Name string

Callers

nothing calls this directly

Calls 2

GetMigratorMethod · 0.65
ValidateMethod · 0.65

Tested by

no test coverage detected