(ctx context.Context)
| 100 | } |
| 101 | |
| 102 | func DBGetSingleton[T waveobj.WaveObj](ctx context.Context) (T, error) { |
| 103 | rtn, err := DBGetSingletonByType(ctx, getOTypeGen[T]()) |
| 104 | return genericCastWithErr[T](rtn, err) |
| 105 | } |
| 106 | |
| 107 | func DBGetSingletonByType(ctx context.Context, otype string) (waveobj.WaveObj, error) { |
| 108 | return WithTxRtn(ctx, func(tx *TxWrap) (waveobj.WaveObj, error) { |
nothing calls this directly
no test coverage detected