FIXME: StructScan was the very first bit of API in sqlx, and now unfortunately it doesn't really feel like it's named properly. There is an incongruency between this and the way that StructScan (which might better be ScanStruct anyway) works on a rows object. StructScan all rows from an sql.Rows or
(rows rowsi, dest interface{})
| 1003 | // allocate structs for the entire result, use Queryx and see sqlx.Rows.StructScan. |
| 1004 | // If rows is sqlx.Rows, it will use its mapper, otherwise it will use the default. |
| 1005 | func StructScan(rows rowsi, dest interface{}) error { |
| 1006 | return scanAll(rows, dest, true) |
| 1007 | |
| 1008 | } |
| 1009 | |
| 1010 | // reflect helpers |
| 1011 |