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

Method QueryContext

update_ctx.go:23–32  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

21}
22
23func (d *updateData) QueryContext(ctx context.Context) (*sql.Rows, error) {
24 if d.RunWith == nil {
25 return nil, RunnerNotSet
26 }
27 ctxRunner, ok := d.RunWith.(QueryerContext)
28 if !ok {
29 return nil, NoContextSupport
30 }
31 return QueryContextWith(ctx, ctxRunner, d)
32}
33
34func (d *updateData) QueryRowContext(ctx context.Context) RowScanner {
35 if d.RunWith == nil {

Callers

nothing calls this directly

Calls 1

QueryContextWithFunction · 0.85

Tested by

no test coverage detected