(opts *Options)
| 147 | } |
| 148 | |
| 149 | func ValidateOpts(opts *Options) error { |
| 150 | if opts.EmitMethodsWithDbArgument && opts.EmitPreparedQueries { |
| 151 | return fmt.Errorf("invalid options: emit_methods_with_db_argument and emit_prepared_queries options are mutually exclusive") |
| 152 | } |
| 153 | if *opts.QueryParameterLimit < 0 { |
| 154 | return fmt.Errorf("invalid options: query parameter limit must not be negative") |
| 155 | } |
| 156 | |
| 157 | return nil |
| 158 | } |