MapColumns modify the column names in the query results to facilitate align to the corresponding structural fields
(m map[string]string)
| 187 | |
| 188 | // MapColumns modify the column names in the query results to facilitate align to the corresponding structural fields |
| 189 | func (db *DB) MapColumns(m map[string]string) (tx *DB) { |
| 190 | tx = db.getInstance() |
| 191 | tx.Statement.ColumnMapping = m |
| 192 | return |
| 193 | } |
| 194 | |
| 195 | // Where add conditions |
| 196 | // |
nothing calls this directly
no test coverage detected