mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
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:
parent
089c90f79b
commit
666f6ac38b
7 changed files with 998 additions and 211 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue