froth-webdriverio-framework 1.0.99 → 1.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db/postgresOperations.js +2 -2
- package/package.json +1 -1
package/db/postgresOperations.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const { Pool } = require('pg');
|
|
2
2
|
|
|
3
3
|
// Function to establish connection to MySQL database
|
|
4
|
-
async function connectToPostgreSQL(hostname, username,
|
|
4
|
+
async function connectToPostgreSQL(hostname, username, password1, dbname, portnumber) {
|
|
5
5
|
try {
|
|
6
6
|
console.log('Connecting to the PostgreSQL database...');
|
|
7
7
|
|
|
8
8
|
const poolConfig = {
|
|
9
9
|
host: hostname,
|
|
10
10
|
user: username,
|
|
11
|
-
password:
|
|
11
|
+
password: password1,
|
|
12
12
|
database: dbname,
|
|
13
13
|
port: 5432 // Increased connection timeout
|
|
14
14
|
};
|