MCPcopy
hub / github.com/go-gorm/gorm / Rows

Method Rows

finisher_api.go:526–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

524}
525
526func (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
537func (db *DB) Scan(dest interface{}) (tx *DB) {

Callers

nothing calls this directly

Calls 4

getInstanceMethod · 0.95
ExecuteMethod · 0.80
SetMethod · 0.65
RowMethod · 0.65

Tested by

no test coverage detected