pingql/apps/status/src/db.ts

12 lines
356 B
TypeScript

// Read-only Postgres client. The status service does NOT run migrations -
// schema is owned by apps/api. This file just opens a connection.
import postgres from "postgres";
const sql = postgres(process.env.DATABASE_URL ?? "postgres://pingql:pingql@localhost:5432/pingql", {
max: 10,
idle_timeout: 30,
connect_timeout: 10,
});
export default sql;