We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e070bd commit 6bcbbaaCopy full SHA for 6bcbbaa
tapdb/sqlutils.go
@@ -103,6 +103,13 @@ func extractSqlInt16[T constraints.Integer](num sql.NullInt16) T {
103
return T(num.Int16)
104
}
105
106
+// extractBool turns a NullBool into a boolean. This can be useful when reading
107
+// directly from the database, as this function handles extracting the inner
108
+// value from the "option"-like struct.
109
+func extractBool(b sql.NullBool) bool {
110
+ return b.Bool
111
+}
112
+
113
// readOutPoint reads the next sequence of bytes from r as an OutPoint.
114
//
115
// NOTE: This function is intended to be used along with the wire.WriteOutPoint
0 commit comments