mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
- Changed the import statement from "bun" to "postgres". - Simplified the PostgreSQL client initialization by directly using the connection string.
6 lines
115 B
TypeScript
6 lines
115 B
TypeScript
import SQL from "postgres";
|
|
|
|
const postgres = SQL(`${process.env.POSTGRES_URL || ""}}`);
|
|
|
|
export default postgres;
|