MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / withSslMode

Function withSslMode

apps/cloud/drizzle.config.ts:11–15  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

9const DEFAULT_DEV_URL = "postgresql://postgres:postgres@127.0.0.1:5433/postgres";
10
11const withSslMode = (url: string): string => {
12 if (url.includes("127.0.0.1") || url.includes("localhost")) return url;
13 if (/[?&]sslmode=/.test(url)) return url;
14 return url + (url.includes("?") ? "&" : "?") + "sslmode=require";
15};
16
17export default defineConfig({
18 schema: ["./src/db/schema.ts", "./src/db/executor-schema.ts"],

Callers 1

drizzle.config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected