MCPcopy
hub / github.com/Masterminds/squirrel / QueryRowContext

Method QueryRowContext

insert_ctx.go:34–46  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

32}
33
34func (d *insertData) QueryRowContext(ctx context.Context) RowScanner {
35 if d.RunWith == nil {
36 return &Row{err: RunnerNotSet}
37 }
38 queryRower, ok := d.RunWith.(QueryRowerContext)
39 if !ok {
40 if _, ok := d.RunWith.(QueryerContext); !ok {
41 return &Row{err: RunnerNotQueryRunner}
42 }
43 return &Row{err: NoContextSupport}
44 }
45 return QueryRowContextWith(ctx, queryRower, d)
46}
47
48// ExecContext builds and ExecContexts the query with the Runner set by RunWith.
49func (b InsertBuilder) ExecContext(ctx context.Context) (sql.Result, error) {

Callers

nothing calls this directly

Calls 1

QueryRowContextWithFunction · 0.85

Tested by

no test coverage detected