MCPcopy Create free account
hub / github.com/dagger/dagger / queryRow

Method queryRow

engine/clientdb/db.go:129–138  ·  view source on GitHub ↗
(ctx context.Context, stmt *sql.Stmt, query string, args ...interface{})

Source from the content-addressed store, hash-verified

127}
128
129func (q *Queries) queryRow(ctx context.Context, stmt *sql.Stmt, query string, args ...interface{}) *sql.Row {
130 switch {
131 case stmt != nil && q.tx != nil:
132 return q.tx.StmtContext(ctx, stmt).QueryRowContext(ctx, args...)
133 case stmt != nil:
134 return stmt.QueryRowContext(ctx, args...)
135 default:
136 return q.db.QueryRowContext(ctx, query, args...)
137 }
138}
139
140type Queries struct {
141 db DBTX

Callers 4

InsertLogMethod · 0.95
InsertMetricMethod · 0.95
InsertSpanMethod · 0.95
SelectSpanMethod · 0.95

Calls 1

QueryRowContextMethod · 0.65

Tested by

no test coverage detected