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

Function scanNullString

modules/sentry/api.go:96–101  ·  view source on GitHub ↗

scanNullString returns empty string for NULL columns.

(ns sql.NullString)

Source from the content-addressed store, hash-verified

94
95// scanNullString returns empty string for NULL columns.
96func scanNullString(ns sql.NullString) string {
97 if ns.Valid {
98 return ns.String
99 }
100 return ""
101}
102
103// scanNullBool returns nil for NULL, pointer to bool otherwise.
104func scanNullBool(nb sql.NullBool) *bool {

Callers 12

handleTracesListFunction · 0.85
handleTraceDetailFunction · 0.85
loadAllSpansFunction · 0.85
loadRelatedErrorsFunction · 0.85
handleExceptionsGroupedFunction · 0.85
handleExceptionDetailFunction · 0.85
loadExceptionsFunction · 0.85
loadBreadcrumbsFunction · 0.85
loadTraceSummaryFunction · 0.85
loadPreviewSpansFunction · 0.85
handleLogsListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected