Empty returns true if the value is empty or uninitialized. This indicates that the underlying DynamoDB operation did not return a value.
()
| 112 | // Empty returns true if the value is empty or uninitialized. This |
| 113 | // indicates that the underlying DynamoDB operation did not return a value. |
| 114 | func (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 |
no outgoing calls