MCPcopy Create free account
hub / github.com/formbricks/formbricks / getConnectionString

Function getConnectionString

packages/database/src/prisma-adapter.ts:55–63  ·  view source on GitHub ↗
(url: URL)

Source from the content-addressed store, hash-verified

53const DEFAULT_CONNECTION_LIMIT = Math.max(2 * cpus().length + 1, 2);
54
55const 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 }

Callers 1

createPrismaPgAdapterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected