(ctx context.Context, zoneId string)
| 37 | } |
| 38 | |
| 39 | func dbGetZoneFileNames(ctx context.Context, zoneId string) ([]string, error) { |
| 40 | return WithTxRtn(ctx, func(tx *TxWrap) ([]string, error) { |
| 41 | var files []string |
| 42 | query := "SELECT name FROM db_wave_file WHERE zoneid = ?" |
| 43 | tx.Select(&files, query, zoneId) |
| 44 | return files, nil |
| 45 | }) |
| 46 | } |
| 47 | |
| 48 | func dbGetZoneFile(ctx context.Context, zoneId string, name string) (*WaveFile, error) { |
| 49 | return WithTxRtn(ctx, func(tx *TxWrap) (*WaveFile, error) { |