()
| 524 | } |
| 525 | |
| 526 | func (db *DB) Rows() (*sql.Rows, error) { |
| 527 | tx := db.getInstance().Set("rows", true) |
| 528 | tx = tx.callbacks.Row().Execute(tx) |
| 529 | rows, ok := tx.Statement.Dest.(*sql.Rows) |
| 530 | if !ok && tx.DryRun && tx.Error == nil { |
| 531 | tx.Error = ErrDryRunModeUnsupported |
| 532 | } |
| 533 | return rows, tx.Error |
| 534 | } |
| 535 | |
| 536 | // Scan scans selected value to the struct dest |
| 537 | func (db *DB) Scan(dest interface{}) (tx *DB) { |
nothing calls this directly
no test coverage detected