MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / Empty

Method Empty

values.go:114–125  ·  view source on GitHub ↗

Empty returns true if the value is empty or uninitialized. This indicates that the underlying DynamoDB operation did not return a value.

()

Source from the content-addressed store, hash-verified

112// Empty returns true if the value is empty or uninitialized. This
113// indicates that the underlying DynamoDB operation did not return a value.
114func (rv ReturnValue) Empty() bool {
115 return rv.av.B == nil &&
116 rv.av.BOOL == nil &&
117 rv.av.BS == nil &&
118 rv.av.L == nil &&
119 rv.av.M == nil &&
120 rv.av.N == nil &&
121 rv.av.NS == nil &&
122 rv.av.NULL == nil &&
123 rv.av.S == nil &&
124 rv.av.SS == nil
125}
126
127// Present returns true if a value is present. It indicates that the underlying
128// DynamoDB AttributeValue has a data in any one of its fields. If you already know

Callers 7

PresentMethod · 0.95
TestLBasicsFunction · 0.80
TestListIndexBasedCRUDFunction · 0.80
TestBasicHashesFunction · 0.80
TestGETSETFunction · 0.80
TestZRangesFunction · 0.80
TestValuesFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestLBasicsFunction · 0.64
TestListIndexBasedCRUDFunction · 0.64
TestBasicHashesFunction · 0.64
TestGETSETFunction · 0.64
TestZRangesFunction · 0.64
TestValuesFunction · 0.64