@accounter/server
Version:
Accounter GraphQL server
18 lines (17 loc) • 585 B
TypeScript
import type { PoolConfig } from 'pg';
/**
* Shared database configuration for test environments
* Uses environment variables with sensible defaults for local development
*/
export declare const testDbConfig: PoolConfig;
/**
* Database schema name for queries
* Allows tests to run in isolated schemas if needed
*/
export declare const testDbSchema: string;
/**
* Helper to build fully-qualified table name
* @param tableName - Unqualified table name
* @returns Fully qualified table name with schema prefix
*/
export declare function qualifyTable(tableName: string): string;