Column represents the Column as expressed in a [SELECT] expression
| 239 | // Column represents the Column as expressed in a [SELECT] |
| 240 | // expression |
| 241 | Column struct { |
| 242 | sourceQuoteByte byte // quote mark? [ or ` etc |
| 243 | asQuoteByte byte // quote mark [ or ` |
| 244 | originalAs string // original as string |
| 245 | left string // users.col_name = "users" |
| 246 | right string // users.first_name = "first_name" |
| 247 | isLiteral bool // is this a literal column? |
| 248 | ParentIndex int // slice idx position in parent query cols |
| 249 | Index int // slice idx position in original query cols |
| 250 | SourceIndex int // slice idx position in source []driver.Value |
| 251 | SourceField string // field name of underlying field |
| 252 | SourceOriginal string // field name of underlying field without the "left.right" parse |
| 253 | As string // As field, auto-populate the Field Name if exists |
| 254 | Comment string // optional in-line comments |
| 255 | Order string // (ASC | DESC) |
| 256 | Star bool // * |
| 257 | Agg bool // aggregate function column? count(*), avg(x) etc |
| 258 | Expr expr.Node // Expression, optional, often Identity.Node |
| 259 | Guard expr.Node // column If guard, non-standard sql column guard |
| 260 | } |
| 261 | // ValueColumn List of Value columns in INSERT into TABLE (colnames) VALUES (valuecolumns) |
| 262 | ValueColumn struct { |
| 263 | Value value.Value |
nothing calls this directly
no outgoing calls
no test coverage detected