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

Method SelectSpansSince

engine/clientdb/queries.sql.go:452–495  ·  view source on GitHub ↗
(ctx context.Context, arg SelectSpansSinceParams)

Source from the content-addressed store, hash-verified

450}
451
452func (q *Queries) SelectSpansSince(ctx context.Context, arg SelectSpansSinceParams) ([]Span, error) {
453 rows, err := q.query(ctx, q.selectSpansSinceStmt, selectSpansSince, arg.ID, arg.Limit)
454 if err != nil {
455 return nil, err
456 }
457 defer rows.Close()
458 var items []Span
459 for rows.Next() {
460 var i Span
461 if err := rows.Scan(
462 &i.ID,
463 &i.TraceID,
464 &i.SpanID,
465 &i.TraceState,
466 &i.ParentSpanID,
467 &i.Flags,
468 &i.Name,
469 &i.Kind,
470 &i.StartTime,
471 &i.EndTime,
472 &i.Attributes,
473 &i.DroppedAttributesCount,
474 &i.Events,
475 &i.DroppedEventsCount,
476 &i.Links,
477 &i.DroppedLinksCount,
478 &i.StatusCode,
479 &i.StatusMessage,
480 &i.InstrumentationScope,
481 &i.Resource,
482 &i.ResourceSchemaUrl,
483 ); err != nil {
484 return nil, err
485 }
486 items = append(items, i)
487 }
488 if err := rows.Close(); err != nil {
489 return nil, err
490 }
491 if err := rows.Err(); err != nil {
492 return nil, err
493 }
494 return items, nil
495}

Callers 2

TestDBRefCountFunction · 0.80

Calls 4

queryMethod · 0.95
CloseMethod · 0.65
ErrMethod · 0.65
ScanMethod · 0.45

Tested by 1

TestDBRefCountFunction · 0.64