Select is a simplified representation of SQL SELECT query.
| 260 | |
| 261 | // Select is a simplified representation of SQL SELECT query. |
| 262 | type Select struct { |
| 263 | Fields []Field |
| 264 | From []Source |
| 265 | Where []Where |
| 266 | Params []Value |
| 267 | Limit int64 |
| 268 | Offset int64 |
| 269 | |
| 270 | // TODO(dennwc): this field in unexported because we don't want it to a be a part of the API |
| 271 | // however, it's necessary to make NodesFrom optimizations to work with SQL |
| 272 | nextPath bool |
| 273 | } |
| 274 | |
| 275 | func (s Select) Clone() Select { |
| 276 | s.Fields = append([]Field{}, s.Fields...) |
nothing calls this directly
no outgoing calls
no test coverage detected