(ctx context.Context, opts *validateOpts)
| 703 | } |
| 704 | |
| 705 | func (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 | |
| 719 | type versionOpts struct { |
| 720 | Name string |
nothing calls this directly
no test coverage detected