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

Method QueryRowContext

prepare_stmt.go:192–198  ·  view source on GitHub ↗
(ctx context.Context, query string, args ...interface{})

Source from the content-addressed store, hash-verified

190}
191
192func (tx *PreparedStmtTX) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row {
193 stmt, err := tx.PreparedStmtDB.prepare(ctx, tx.Tx, true, query)
194 if err == nil {
195 return tx.Tx.StmtContext(ctx, stmt.Stmt).QueryRowContext(ctx, args...)
196 }
197 return &sql.Row{}
198}
199
200func (tx *PreparedStmtTX) Ping() error {
201 conn, err := tx.GetDBConn()

Callers

nothing calls this directly

Calls 3

prepareMethod · 0.80
StmtContextMethod · 0.80
QueryRowContextMethod · 0.65

Tested by

no test coverage detected