We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f56f836 + a6a3deb commit 8d8f7ceCopy full SHA for 8d8f7ce
1 file changed
adminforth/dataConnectors/postgres.ts
@@ -5,13 +5,13 @@ import AdminForthBaseConnector from './baseConnector.js';
5
import pkg from 'pg';
6
import { afLogger, dbLogger } from '../modules/logger.js';
7
8
-const { Client } = pkg;
+const { Pool } = pkg;
9
10
11
class PostgresConnector extends AdminForthBaseConnector implements IAdminForthDataSourceConnector {
12
13
async setupClient(url: string): Promise<void> {
14
- this.client = new Client({
+ this.client = new Pool({
15
connectionString: url
16
});
17
try {
0 commit comments