(sslAccept: string)
| 412 | } |
| 413 | |
| 414 | function prismaSslAcceptToMySQL2Ssl(sslAccept: string): { rejectUnauthorized: boolean } { |
| 415 | switch (sslAccept) { |
| 416 | case 'strict': |
| 417 | return { rejectUnauthorized: true } |
| 418 | case 'accept_invalid_certs': |
| 419 | return { rejectUnauthorized: false } |
| 420 | default: |
| 421 | throw new Error( |
| 422 | `Unknown Prisma MySQL sslaccept value "${sslAccept}". Supported values are "strict" and "accept_invalid_certs".`, |
| 423 | ) |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | // prettier-ignore |
| 428 | function getIndexHtml(adapter: StudioAdapterType): string { |
no outgoing calls
no test coverage detected