MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / QuickSetInt64

Function QuickSetInt64

pkg/util/dbutil/dbutil.go:67–83  ·  view source on GitHub ↗
(ival *int64, m map[string]any, name string)

Source from the content-addressed store, hash-verified

65}
66
67func QuickSetInt64(ival *int64, m map[string]any, name string) {
68 v, ok := m[name]
69 if !ok {
70 // leave as zero
71 return
72 }
73 sqlInt64, ok := v.(int64)
74 if ok {
75 *ival = sqlInt64
76 return
77 }
78 sqlInt, ok := v.(int)
79 if ok {
80 *ival = int64(sqlInt)
81 return
82 }
83}
84
85func QuickSetBool(bval *bool, m map[string]any, name string) {
86 v, ok := m[name]

Callers 1

FromDBMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected