MCPcopy Create free account
hub / github.com/TanStack/db / makePgClient

Function makePgClient

packages/db-collection-e2e/support/global-setup.ts:31–41  ·  view source on GitHub ↗
(overrides: ClientConfig = {})

Source from the content-addressed store, hash-verified

29 * Create a PostgreSQL client with default e2e test configuration
30 */
31export function makePgClient(overrides: ClientConfig = {}): Client {
32 return new Client({
33 host: POSTGRES_HOST,
34 port: POSTGRES_PORT,
35 user: POSTGRES_USER,
36 password: POSTGRES_PASSWORD,
37 database: POSTGRES_DB,
38 options: `-csearch_path=${TEST_SCHEMA}`,
39 ...overrides,
40 })
41}
42
43/**
44 * Wait for Electric server to be ready

Callers 3

test-context.tsFile · 0.90
global-setup.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected