(columnTypes []*sql.ColumnType, e error)
| 378 | } |
| 379 | |
| 380 | func (s *Storage) transformColumnTypes(columnTypes []*sql.ColumnType, e error) (types []string, err error) { |
| 381 | if e != nil { |
| 382 | err = e |
| 383 | return |
| 384 | } |
| 385 | |
| 386 | types = make([]string, len(columnTypes)) |
| 387 | |
| 388 | for i, c := range columnTypes { |
| 389 | types[i] = c.DatabaseTypeName() |
| 390 | } |
| 391 | |
| 392 | return |
| 393 | } |
| 394 | |
| 395 | // golang does trick convert, use rowScanner to return the original result type in sqlite3 driver. |
| 396 | type rowScanner struct { |