MCPcopy Create free account
hub / github.com/buggregator/server / scanNullInt

Function scanNullInt

modules/sentry/api.go:112–118  ·  view source on GitHub ↗

scanNullInt returns nil for NULL, pointer to int otherwise.

(ni sql.NullInt64)

Source from the content-addressed store, hash-verified

110
111// scanNullInt returns nil for NULL, pointer to int otherwise.
112func scanNullInt(ni sql.NullInt64) *int {
113 if ni.Valid {
114 v := int(ni.Int64)
115 return &v
116 }
117 return nil
118}

Callers 7

handleTracesListFunction · 0.85
handleTraceDetailFunction · 0.85
loadAllSpansFunction · 0.85
handleServiceMapFunction · 0.85
loadTraceSummaryFunction · 0.85
loadPreviewSpansFunction · 0.85
handleLogsListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected