refactor: update PostgreSQL import and initialization

- Changed the import statement from "bun" to "postgres".
- Simplified the PostgreSQL client initialization by directly using the connection string.
This commit is contained in:
yuanhau 2025-05-11 00:17:42 +08:00
parent 089c90f79b
commit 666f6ac38b
7 changed files with 998 additions and 211 deletions

View file

@ -1,7 +1,5 @@
import { SQL } from "bun";
import SQL from "postgres";
const postgres = new SQL({
url: process.env.POSTGRES_URL,
});
const postgres = SQL(`${process.env.POSTGRES_URL || ""}}`);
export default postgres;