MCPcopy Index your code
hub / github.com/simstudioai/sim / makeConfig

Function makeConfig

apps/sim/app/api/tools/postgresql/utils.test.ts:20–30  ·  view source on GitHub ↗
(overrides: Partial<PostgresConnectionConfig> = {})

Source from the content-addressed store, hash-verified

18import { createPostgresConnection } from '@/app/api/tools/postgresql/utils'
19
20function makeConfig(overrides: Partial<PostgresConnectionConfig> = {}): PostgresConnectionConfig {
21 return {
22 host: 'db.example.com',
23 port: 5432,
24 database: 'app',
25 username: 'app',
26 password: 'secret',
27 ssl: 'required',
28 ...overrides,
29 }
30}
31
32describe('createPostgresConnection DNS pinning', () => {
33 beforeEach(() => {

Callers 1

utils.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected