uranio 1.1.8 → 1.1.9
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/.uranio/package.json
CHANGED
|
@@ -38,16 +38,16 @@ export class MongoDBClient {
|
|
|
38
38
|
try {
|
|
39
39
|
// Check if the client is already connected by pinging the database
|
|
40
40
|
await this.client.db().command({ping: 1});
|
|
41
|
-
log.
|
|
41
|
+
log.debug('MongoDB is already connected.');
|
|
42
42
|
} catch (error) {
|
|
43
43
|
log.trace('Connecting to MongoDB...');
|
|
44
44
|
await this.client.connect();
|
|
45
|
-
log.
|
|
45
|
+
log.debug('MongoDB connected.');
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
public async disconnect() {
|
|
49
|
-
log.trace('Disconnecting...');
|
|
49
|
+
log.trace('Disconnecting from MongoDB...');
|
|
50
50
|
await this.client.close();
|
|
51
|
-
log.
|
|
51
|
+
log.debug('MongoDB disconnected.');
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -43,7 +43,7 @@ export class MySQLClient {
|
|
|
43
43
|
typeof values !== 'undefined'
|
|
44
44
|
? ` with values [${Object.entries(values)}]`
|
|
45
45
|
: '';
|
|
46
|
-
log.
|
|
46
|
+
log.debug(`Excuting query '${sql}'${with_values}`);
|
|
47
47
|
if (this.pool) {
|
|
48
48
|
return await this._execute_from_pool_connection(sql, values);
|
|
49
49
|
}
|
|
@@ -42,7 +42,7 @@ export class PostgreSQLClient {
|
|
|
42
42
|
typeof paramValues !== 'undefined' && paramValues.length > 0
|
|
43
43
|
? ` with values [${paramValues}]`
|
|
44
44
|
: '';
|
|
45
|
-
log.
|
|
45
|
+
log.debug(`Excuting query '${query}'${with_values}`);
|
|
46
46
|
if (this.pool) {
|
|
47
47
|
return await this._execute_from_pool_connection(query, paramValues);
|
|
48
48
|
}
|