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

Method QueryRowContext

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

Source from the content-addressed store, hash-verified

129}
130
131func (db *PreparedStmtDB) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row {
132 stmt, err := db.prepare(ctx, db.ConnPool, false, query)
133 if err == nil {
134 return stmt.QueryRowContext(ctx, args...)
135 }
136 return &sql.Row{}
137}
138
139func (db *PreparedStmtDB) Ping() error {
140 conn, err := db.GetDBConn()

Callers

nothing calls this directly

Calls 2

prepareMethod · 0.95
QueryRowContextMethod · 0.65

Tested by

no test coverage detected