MCPcopy Index your code
hub / github.com/upper/db / QueryRowContext

Method QueryRowContext

internal/sqlbuilder/select.go:436–443  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

434}
435
436func (sel *selector) QueryRowContext(ctx context.Context) (*sql.Row, error) {
437 sq, err := sel.build()
438 if err != nil {
439 return nil, err
440 }
441
442 return sel.SQL().sess.StatementQueryRow(ctx, sq.statement(), sq.arguments()...)
443}
444
445func (sel *selector) Prepare() (*sql.Stmt, error) {
446 return sel.PrepareContext(sel.SQL().sess.Context())

Callers 1

QueryRowMethod · 0.95

Calls 5

buildMethod · 0.95
SQLMethod · 0.95
StatementQueryRowMethod · 0.65
statementMethod · 0.45
argumentsMethod · 0.45

Tested by

no test coverage detected