(url: URL)
| 53 | const DEFAULT_CONNECTION_LIMIT = Math.max(2 * cpus().length + 1, 2); |
| 54 | |
| 55 | const getConnectionString = (url: URL): string => { |
| 56 | const sanitizedUrl = new URL(url.toString()); |
| 57 | |
| 58 | PRISMA_ONLY_PARAMS.forEach((param) => { |
| 59 | sanitizedUrl.searchParams.delete(param); |
| 60 | }); |
| 61 | |
| 62 | return sanitizedUrl.toString(); |
| 63 | }; |
| 64 | |
| 65 | // Translate Prisma's sslaccept param to pg's ssl PoolConfig. |
| 66 | // accept_invalid_certs → ssl: { rejectUnauthorized: false } |
no outgoing calls
no test coverage detected