Files
gongxue-base/apps/worker/src/db.ts
2026-06-29 04:35:19 +08:00

12 lines
249 B
TypeScript

import { createPool } from '../../../packages/db/src/index.js';
import { config } from './config.js';
export const pool = createPool({
connectionString: config.databaseUrl,
max: 5,
});
export async function closePool() {
await pool.end();
}