(example?: string | null)
| 65 | } |
| 66 | |
| 67 | function getProtocolFromExample(example?: string | null): string | null { |
| 68 | if (!example?.trim()) return null; |
| 69 | |
| 70 | try { |
| 71 | const url = new URL(example.trim()); |
| 72 | return normalizeProtocol(url.protocol); |
| 73 | } catch { |
| 74 | return null; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | function connectionStringImportEnabled( |
| 79 | capabilities?: DriverCapabilities | null, |
no test coverage detected