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

Method InsertMetric

engine/clientdb/queries.sql.go:69–74  ·  view source on GitHub ↗
(ctx context.Context, data []byte)

Source from the content-addressed store, hash-verified

67`
68
69func (q *Queries) InsertMetric(ctx context.Context, data []byte) (int64, error) {
70 row := q.queryRow(ctx, q.insertMetricStmt, insertMetric, data)
71 var id int64
72 err := row.Scan(&id)
73 return id, err
74}
75
76const insertSpan = `-- name: InsertSpan :one
77INSERT INTO

Callers 1

ExportMethod · 0.80

Calls 2

queryRowMethod · 0.95
ScanMethod · 0.45

Tested by

no test coverage detected