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

Function scanNullBool

modules/sentry/api.go:104–109  ·  view source on GitHub ↗

scanNullBool returns nil for NULL, pointer to bool otherwise.

(nb sql.NullBool)

Source from the content-addressed store, hash-verified

102
103// scanNullBool returns nil for NULL, pointer to bool otherwise.
104func scanNullBool(nb sql.NullBool) *bool {
105 if nb.Valid {
106 return &nb.Bool
107 }
108 return nil
109}
110
111// scanNullInt returns nil for NULL, pointer to int otherwise.
112func scanNullInt(ni sql.NullInt64) *int {

Callers 4

handleExceptionsGroupedFunction · 0.85
handleExceptionDetailFunction · 0.85
loadExceptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected