scanNullBool returns nil for NULL, pointer to bool otherwise.
(nb sql.NullBool)
| 102 | |
| 103 | // scanNullBool returns nil for NULL, pointer to bool otherwise. |
| 104 | func 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. |
| 112 | func scanNullInt(ni sql.NullInt64) *int { |
no outgoing calls
no test coverage detected