forked from wangziqi/gongxue-base
12 lines
249 B
TypeScript
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();
|
|
}
|