NewValidator creates a new Validator with the given options. Constructs a Validator instance with specified I/O writers and options. This is the primary way to create a Validator for both CLI and programmatic use. Parameters: - out: Output writer for success messages and results - err: Error write
(out, err io.Writer, opts ValidatorOptions)
| 113 | // |
| 114 | // NewValidator creates a new Validator with the given options |
| 115 | func NewValidator(out, err io.Writer, opts ValidatorOptions) *Validator { |
| 116 | return &Validator{ |
| 117 | Out: out, |
| 118 | Err: err, |
| 119 | Opts: opts, |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | // Validate validates the given SQL files or patterns. |
| 124 | // |
no outgoing calls