client.ts
+
#
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
import 'dotenv/load.ts';
import { Client } from 'postgress';
export const client = new Client({
user: Deno.env.get('DB_USER'),
database: Deno.env.get('DB_NAME'),
hostname: Deno.env.get('DB_HOST'),
port: Deno.env.get('DB_PORT'),
password: Deno.env.get('DB_PASSWORD'),
});
await client.connect();