(obj: Record<string, any>)
| 58 | } |
| 59 | |
| 60 | function convertToConnStringMap(obj: Record<string, any>) { |
| 61 | const result = []; |
| 62 | Object.keys(obj).forEach(key => { |
| 63 | result.push(`${key}:${obj[key]}`); |
| 64 | }); |
| 65 | |
| 66 | return result.join(','); |
| 67 | } |
| 68 | |
| 69 | function getCompressor(compressor: string | undefined): CompressorName { |
| 70 | if (!compressor) return null; |