Function
GetMappable
(tx *txwrap.TxWrap, query string, args ...interface{})
Source from the content-addressed store, hash-verified
| 61 | } |
| 62 | |
| 63 | func GetMappable[PT DBMappablePtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) PT { |
| 64 | m := tx.GetMap(query, args...) |
| 65 | if len(m) == 0 { |
| 66 | return nil |
| 67 | } |
| 68 | rtn := PT(new(T)) |
| 69 | FromDBMap(rtn, m) |
| 70 | return rtn |
| 71 | } |
| 72 | |
| 73 | func SelectMappable[PT DBMappablePtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) []PT { |
| 74 | var rtn []PT |
Callers
nothing calls this directly
Tested by
no test coverage detected