(builder Builder)
| 209 | } |
| 210 | |
| 211 | func (in IN) NegationBuild(builder Builder) { |
| 212 | builder.WriteQuoted(in.Column) |
| 213 | switch len(in.Values) { |
| 214 | case 0: |
| 215 | builder.WriteString(" IS NOT NULL") |
| 216 | case 1: |
| 217 | if _, ok := in.Values[0].([]interface{}); !ok { |
| 218 | builder.WriteString(" <> ") |
| 219 | builder.AddVar(builder, in.Values[0]) |
| 220 | break |
| 221 | } |
| 222 | |
| 223 | fallthrough |
| 224 | default: |
| 225 | builder.WriteString(" NOT IN (") |
| 226 | builder.AddVar(builder, in.Values...) |
| 227 | builder.WriteByte(')') |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | // Eq equal to for where |
| 232 | type Eq struct { |
nothing calls this directly
no test coverage detected