(tx *txwrap.TxWrap, query string, args ...interface{})
| 71 | } |
| 72 | |
| 73 | func SelectMappable[PT DBMappablePtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) []PT { |
| 74 | var rtn []PT |
| 75 | marr := tx.SelectMaps(query, args...) |
| 76 | for _, m := range marr { |
| 77 | if len(m) == 0 { |
| 78 | continue |
| 79 | } |
| 80 | val := PT(new(T)) |
| 81 | FromDBMap(val, m) |
| 82 | rtn = append(rtn, val) |
| 83 | } |
| 84 | return rtn |
| 85 | } |
| 86 | |
| 87 | func SelectMapsGen[PT MapConverterPtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) []PT { |
| 88 | var rtn []PT |
nothing calls this directly
no test coverage detected