article update automation #4

Merged
Hare merged 7 commits from develop into master 2024-09-03 05:14:12 +09:00
Showing only changes of commit 5c01942948 - Show all commits

View File

@ -1,10 +1,9 @@
import pg from 'pg';
const { Pool } = pg;
import { getConnection } from './database/get_connection';
export class Postgres {
client: pg.PoolClient | null = null;
public static async new(pool: Pool) {
public static async new(pool: pg.Pool) {
const pg = new Postgres();
pg.client = await getConnection().connect();
return pg;
@ -32,7 +31,7 @@ export class Postgres {
}
export default async (
pool: Pool
pool: pg.Pool
) => { return await Postgres.new(pool); };
import { building } from '$app/environment';