(ctx context.Context, ids []string)
| 260 | } |
| 261 | |
| 262 | func DBSelectMap[T waveobj.WaveObj](ctx context.Context, ids []string) (map[string]T, error) { |
| 263 | rtnArr, err := dbSelectOIDs(ctx, getOTypeGen[T](), ids) |
| 264 | if err != nil { |
| 265 | return nil, err |
| 266 | } |
| 267 | rtnMap := make(map[string]T) |
| 268 | for _, obj := range rtnArr { |
| 269 | rtnMap[waveobj.GetOID(obj)] = obj.(T) |
| 270 | } |
| 271 | return rtnMap, nil |
| 272 | } |
| 273 | |
| 274 | func DBDelete(ctx context.Context, otype string, id string) error { |
| 275 | err := WithTx(ctx, func(tx *TxWrap) error { |
nothing calls this directly
no test coverage detected