(ctx context.Context, zoneId string, name string)
| 46 | } |
| 47 | |
| 48 | func dbGetZoneFile(ctx context.Context, zoneId string, name string) (*WaveFile, error) { |
| 49 | return WithTxRtn(ctx, func(tx *TxWrap) (*WaveFile, error) { |
| 50 | query := "SELECT * FROM db_wave_file WHERE zoneid = ? AND name = ?" |
| 51 | file := dbutil.GetMappable[*WaveFile](tx, query, zoneId, name) |
| 52 | return file, nil |
| 53 | }) |
| 54 | } |
| 55 | |
| 56 | func dbGetAllZoneIds(ctx context.Context) ([]string, error) { |
| 57 | return WithTxRtn(ctx, func(tx *TxWrap) ([]string, error) { |
no test coverage detected