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

Method Row

finisher_api.go:516–524  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

514}
515
516func (db *DB) Row() *sql.Row {
517 tx := db.getInstance().Set("rows", false)
518 tx = tx.callbacks.Row().Execute(tx)
519 row, ok := tx.Statement.Dest.(*sql.Row)
520 if !ok && tx.DryRun {
521 db.Logger.Error(tx.Statement.Context, ErrDryRunModeUnsupported.Error())
522 }
523 return row
524}
525
526func (db *DB) Rows() (*sql.Rows, error) {
527 tx := db.getInstance().Set("rows", true)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected